1 # Contributor: benetnash<starbreaker@op.pl>
2 # Maintainer: Mario Blättermann <mariobl@gnome.org>
6 pkgdesc="wmappl is a simple scrolling application launcher for the WindowMaker dock"
8 url="http://wmappl.sourceforge.net"
10 depends=('libxpm' 'imlib2')
11 source=(ftp://ftp.uni-kl.de/pub/linux/gentoo/distfiles/$pkgname-$pkgver.tar.gz)
12 md5sums=('a72ed0dba969ff0e5e507680bf40fdd6')
15 cd $startdir/src/$pkgname-$pkgver
16 ./configure --prefix=/usr --enable-Imlib2
18 make DESTDIR=$startdir/pkg install
19 mv $startdir/pkg/usr/bin/wmappl $startdir/pkg/usr/bin/wmappl-bin
21 # Generating default config
22 mkdir -p $startdir/pkg/usr/share/wmappl/
23 cat > $startdir/pkg/usr/share/wmappl/wmapplrc-default << EOF
25 iconpath=/usr/share/icons/wmappl:/usr/share/pixmaps/mini
32 command = xmessage "Reports bugs to: \
33 wmappl.sourceforge.net" &
34 tooltip = wmappl information
38 command = xterm -fg white -bg black -e man wmappl &
39 tooltip = open the wmappl man page
43 command = /usr/share/GNUstep/WPrefs.app/WPrefs &
60 tooltip = xmms gets a really really really \
61 really really really really really \
62 really really really really really \
67 command = xterm -fg green -bg black \
68 -e ssh -l user shell.work.com &
73 cat > $startdir/pkg/usr/bin/wmappl << EOF
75 #test if file already exists
78 if (test -e \$HOME/.wmapplrc) then
81 #if no, get /usr/share/wmapplrc-default and copy to \$HOME
83 cp /usr/share/wmappl/wmapplrc-default \$HOME/.wmapplrc
88 chmod +x $startdir/pkg/usr/bin/wmappl