#Maintainer: tsuren pkgname=fluxbox pkgver=1.1.1 pkgrel=1 zenver=54 arch=i486 sourcetemplate=("http://zenwalk.pinguix.com/user-accounts/tsuren/xap/fluxbox/") source=("http://prdownloads.sourceforge.net/fluxbox/fluxbox-1.1.1.tar.gz") docs=('AUTHORS' 'ChangeLog' 'COPY' 'INSTALL' 'NEWS' 'LICENSE' 'notes' 'README' 'TODO') url="http://www.fluxbox.org/" #extradepends=('') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - Highly configurable and low resource X11 Window manager." "A fork of Blackbox, Fluxbox has been extended with features such as" "pwm-style window tabs, configurable key bindings, an icon bar, and2" "the Fluxbox "Slit". It also includes some cosmetic fixes over" "blackbox, while remaining compatible with all blackbox themes." ) build() { cd $startdir/src/$pkgname-$pkgver autoreconf -i ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --infodir=/usr/info \ --mandir=/usr/man \ --docdir=/usr/doc/$name-$version \ --x-includes=/usr/include \ --x-libraries=/usr/lib \ --enable-nls \ --enable-imlib2 \ --enable-xinerama \ --with-x make || return 1 make DESTDIR=$startdir/pkg install # Create The Empty Backgrounds Directory mkdir -p $startdir/pkg/usr/share/fluxbox/backgrounds cp $startdir/default.jpg $startdir/pkg/usr/share/fluxbox/backgrounds cp $startdir/default.jpg $startdir/pkg/usr/src/$pkgname-$pkgver/ # Create the Initialization File rm -f $startdir/pkg/usr/share/fluxbox/init cat <$startdir/pkg/usr/share/fluxbox/init.new session.screen0.overlay.lineWidth: 1 session.screen0.overlay.lineStyle: LineSolid session.screen0.overlay.joinStyle: JoinMiter session.screen0.overlay.capStyle: CapNotLast session.screen0.slit.maxOver: false session.screen0.slit.direction: Vertical session.screen0.slit.layer: Dock session.screen0.slit.autoHide: false session.screen0.slit.onhead: 1 session.screen0.slit.placement: BottomRight session.screen0.slit.alpha: 255 session.screen0.slit.onTop: False session.screen0.tab.width: 64 session.screen0.tab.height: 16 session.screen0.tab.rotatevertical: True session.screen0.tab.placement: TopLeft session.screen0.tab.alignment: Left session.screen0.window.focus.alpha: 150 session.screen0.window.unfocus.alpha: 150 session.screen0.tabs.maxOver: false session.screen0.tabs.intitlebar: true session.screen0.iconbar.mode: Workspace session.screen0.iconbar.iconWidth: 48 session.screen0.iconbar.wheelMode: Screen session.screen0.iconbar.alignment: Relative session.screen0.iconbar.usePixmap: true session.screen0.iconbar.iconTextPadding: 10l session.screen0.toolbar.visible: true session.screen0.toolbar.maxOver: false session.screen0.toolbar.placement: TopCenter session.screen0.toolbar.autoHide: false session.screen0.toolbar.tools: workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock session.screen0.toolbar.height: 0 session.screen0.toolbar.layer: Dock session.screen0.toolbar.onTop: False session.screen0.toolbar.widthPercent: 100 session.screen0.toolbar.alpha: 150 session.screen0.toolbar.onhead: 2 session.screen0.menu.alpha: 120 session.screen0.titlebar.left: Stick session.screen0.titlebar.right: Minimize Maximize Close session.screen0.reversewheeling: false session.screen0.colPlacementDirection: TopToBottom session.screen0.clickRaises: true session.screen0.menuDelay: 0 session.screen0.decorateTransient: true session.screen0.resizeMode: Bottom session.screen0.strftimeFormat: \%l:\%M session.screen0.rowPlacementDirection: LeftToRight session.screen0.menuDelayClose: 0 session.screen0.edgeSnapThreshold: 0 session.screen0.defaultDeco: NORMAL session.screen0.opaqueMove: false session.screen0.focusNewWindows: true session.screen0.autoRaise: true session.screen0.rootCommand: fbsetbg -a /usr/share/fluxbox/backgrounds/default.jpg session.screen0.menuMode: Delay session.screen0.showwindowposition: true session.screen0.tabFocusModel: ClickToTabFocus session.screen0.workspaceNames: one,two,three,four, session.screen0.windowScrollAction: session.screen0.workspaces: 4 session.screen0.userFollowModel: Follow session.screen0.workspacewarping: true session.screen0.imageDither: false session.screen0.focusLastWindow: True session.screen0.fullMaximization: false session.screen0.windowMenu: session.screen0.windowScrollReverse: false session.screen0.focusModel: ClickFocus session.screen0.windowPlacement: RowSmartPlacement session.screen0.followModel: Ignore session.screen0.desktopwheeling: true session.tabsAttachArea: Window session.appsFile: ~/.fluxbox/apps session.autoRaiseDelay: 250 session.groupFile: ~/.fluxbox/groups session.styleFile: /usr/share/fluxbox/styles/Meta session.ignoreBorder: false session.opaqueMove: False session.colorsPerChannel: 4 session.cacheMax: 200l session.cacheLife: 5l session.configVersion: 1 session.doubleClickInterval: 250 session.styleOverlay: ~/.fluxbox/overlay session.forcePseudoTransparency: true session.slitlistFile: ~/.fluxbox/slitlist session.imageDither: True session.menuFile: ~/.fluxbox/menu session.keyFile: ~/.fluxbox/keys session.tabPadding: 0 session.modKey: Mod1 EOF chmod 644 $startdir/pkg/usr/share/fluxbox/init.new # Create the Menu File rm -f $startdir/pkg/usr/share/fluxbox/menu cat <$startdir/pkg/usr/share/fluxbox/menu.new # If you read this it means you want to edit this file manually, so here # are some useful tips: # # - You can add your own menu entries to ~/.fluxbox/usermenu # # - The X applications from the official Zenwalk release are included in this menu # # - Additional X applications also appear in this menu as comments # # - SVG icons are not supported at this time # # - To prevent any other app from overwriting your menu # you can change the menu name in .fluxbox/init to: # session.menuFile: /home/you/.fluxbox/my-menu [begin] (Zenwalk) [separator] [exec] (Run Program) {fbrun} [workspaces] (Workspace List) [separator] [exec] (Terminal) {Terminal} [exec] (File Manager) {thunar} [exec] (Web Browser) {iceweasel} [submenu] (Accessories) [exec] (Character Map) {gucharmap} [exec] (Catfish) {catfish} [exec] (Galculator) {galculator} [exec] (Mousepad) {mousepad} [exec] (Thunar File Manager) {thunar} [exec] (Xarchiver) {xarchiver} [exec] (Xpad) {xpad} [end] [submenu] (Developement) [exec] (Bluefish Editor) {bluefish} [exec] (Geany) {geany} [exec] (Hex Editor) {ghex2} [end] #[submenu] (Games) # [exec] (AssaultCube) {assaultcube -t} # [exec] (FakeNES) {fakenes} #[end] [submenu] (Graphics) [exec] (Dia Diagram Editor) {dia} [exec] (Evince) {evince} # [exec] (FontForge) {fontforge} [exec] (GQview) {gqview} # [exec] (Inkscape SVG Vector Illustrator) {inkscape} # [exec] (QCad) {qcad} [exec] (The GIMP) {gimp} [end] [submenu] (Multimedia) # [exec] (Alsaplayer) {alsaplayer} # [exec] (Audacious) {audacious} [exec] (G-Mplayer) {gmplayer} [exec] (Brasero) {brasero} [exec] (Asunder) {asunder} [exec] (Mplayer) {mplayer} [exec] (Streamtuner) {streamtuner} # [exec] (VLC) {vlc} # [exec] (x264 Encoder) {x264_gtk_encode} [end] [submenu] (Network) # [exec] (aLinkCreator) {alc} # [exec] (Amule) {amule} # [exec] (Claws Mail) {claws-mail} [exec] (bssh) {bssh} [exec] (bvnc) {bvnc} [exec] (Iceweasel) {iceweasel} [exec] (FuseSmbTool) {fusesmbtool} [exec] (gFTP) {gftp} # [exec] (NmapFE) {nmapfe} [exec] (Pidgin Internet Messenger) {pidgin} [exec] (Icedove) {icedove} [exec] (Transmission) {transmission-gtk} [exec] (Wicd) {wicd} # [exec] (Urlgfe) {urlgfe} # [exec] (Wifi-radar) {gksu wifi-radar} # [exec] (Wireshark) {wireshark} # [exec] (WxCas) {wxcas} [end] [submenu] (Office) [exec] (Abiword) {abiword} [exec] (Calendar) {orage} [exec] (Gnumeric Spreadsheet) {gnumeric} [exec] (Xsane) {xsane} [end] [submenu] (Settings) # [exec] (Fluxbox Panel Manager) {fbpanel --configure} [config] (Configure Fluxbox) [submenu] (Fluxbox Styles) [stylesdir] (/usr/share/fluxbox/styles) [end] [end] [submenu] (System) [exec] (Bulk Rename) {/usr/libexec/ThunarBulkRename} [exec] (Cups Printing Manager) {iceweasel http://localhost:631/} # [exec] (GParted) {gksu gparted} [exec] (Hibernate) {gksu /usr/sbin/hibernate} [exec] (htop) {Terminal -e htop} [exec] (Login Screen Setup) {gksu gdmsetup} [exec] (NDIS Wireless Drivers) {gksu ndisgtk} [exec] (Netpkg) {gksu xnetpkg} # [exec] (Qemu Launcher) {qemu-launcher} [exec] (Root Terminal) {gksu Terminal} [exec] (Standby) {gksu /usr/sbin/standby} # [exec] (Wine Configurator) {winecfg} [exec] (Zenpanel) {gksu zenpanel} [exec] (Zenwalk Manual) {iceweasel /usr/share/zenmanual/index.html} [end] [separator] [exit] (Exit) [end] EOF chmod 644 $startdir/pkg/usr/share/fluxbox/menu.new # Create the Key-Bindings File rm -f $startdir/pkg/usr/share/fluxbox/keys cat <$startdir/pkg/usr/share/fluxbox/keys.new OnDesktop Mouse1 :HideMenus OnDesktop Mouse2 :WorkspaceMenu OnDesktop Mouse3 :RootMenu OnDesktop Mouse4 :NextWorkspace OnDesktop Mouse5 :PrevWorkspace Mod1 Tab :NextWindow Mod1 Shift Tab :PrevWindow Mod1 F1 :Workspace 1 Mod1 F2 :Workspace 2 Mod1 F3 :Workspace 3 Mod1 F4 :Workspace 4 Control Mod1 s :ExecCommand gksu /usr/sbin/standby Control Mod1 h :ExecCommand gksu /usr/sbin/hibernate Control Escape :RootMenu Control F1 :ExecCommand firefox /usr/share/zenmanual/index.html Control Mod1 Delete :ExecCommand xscreensaver-command -lock Control F2 :ExecCommand fbrun Control Mod1 Escape :ExecCommand xkill EOF chmod 644 $startdir/pkg/usr/share/fluxbox/keys.new # Create Startup Script rm -f $startdir/pkg/usr/bin/startfluxbox cat <$startdir/pkg/usr/bin/startfluxbox #!/bin/sh # \$Id: startfluxbox.in 4600 2006-10-27 07:04:51Z mathias \$ command="\`basename \"\$0\"\`" startup="\$HOME/.fluxbox/startup" while [ \$# -gt 0 ]; do case "\$1" in -c|--config) if [ \$# -lt 2 ]; then echo "\$command:error, missing argument" exit 1 fi shift startup=\$1 ;; -h|--help) cat < "\$startup" fi chmod 644 "\$startup" exec sh \$startup fi EOF00 chmod 755 $startdir/pkg/usr/bin/startfluxbox # Create the New Session File rm -f $startdir/pkg/etc/X11/dm/Sessions/fluxbox.desktop mkdir -p $startdir/pkg/etc/X11/dm/Sessions/ cat <$startdir/pkg/etc/X11/dm/Sessions/fluxbox.desktop [Desktop Entry] Encoding=UTF-8 Name=Fluxbox Comment=The Fluxbox Window Manager Exec=/etc/X11/xinit/xinitrc.fluxbox EOF00 chmod 644 $startdir/pkg/etc/X11/dm/Sessions/$name.desktop # Create the New Initialization File rm -f $startdir/pkg/etc/X11/xinit/xinitrc.fluxbox mkdir -p $startdir/pkg/etc/X11/xinit/ cat <$startdir/pkg/etc/X11/xinit/xinitrc.fluxbox #!/bin/sh # \$Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp \$ userresources=\$HOME/.Xresources usermodmap=\$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f \$sysresources ]; then xrdb -merge \$sysresources fi if [ -f \$sysmodmap ]; then xmodmap \$sysmodmap fi if [ -f \$userresources ]; then xrdb -merge \$userresources fi if [ -f \$usermodmap ]; then xmodmap \$usermodmap fi # start some nice programs startfluxbox EOF00 chmod 755 $startdir/pkg/etc/X11/xinit/xinitrc.fluxbox } # Create the doinst.sh File doinst() { dotnew() { NEW="${1}.new" OLD="$1" if [ ! -e $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then rm $NEW fi } dotnew usr/share/fluxbox/init dotnew usr/share/fluxbox/menu dotnew usr/share/fluxbox/keys }