updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / wmappl / PKGBUILD
blob9cd8276fd290e6e32fac37cd7ea1701d61ba090f
1 # Contributor: benetnash<starbreaker@op.pl>
2 # Maintainer: Mario Blättermann <mariobl@gnome.org>
3 pkgname=wmappl
4 pkgver=0.71
5 pkgrel=4
6 pkgdesc="wmappl is a simple scrolling application launcher for the WindowMaker dock"
7 arch=('i686' 'x86_64')
8 url="http://wmappl.sourceforge.net"
9 license="GPL"
10 depends=('libxpm' 'imlib2')
11 source=(ftp://ftp.uni-kl.de/pub/linux/gentoo/distfiles/$pkgname-$pkgver.tar.gz)
12 md5sums=('a72ed0dba969ff0e5e507680bf40fdd6')
14 build() {
15   cd $startdir/src/$pkgname-$pkgver
16   ./configure --prefix=/usr --enable-Imlib2
17   make || return 1
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
24 [wmappl]
25     iconpath=/usr/share/icons/wmappl:/usr/share/pixmaps/mini
26     name=Demo
27     window=
28     debug=
29     
30     [info] 
31     icon = info.xpm
32     command = xmessage "Reports bugs to: \
33     wmappl.sourceforge.net" &
34     tooltip = wmappl information
35     
36     [man wmappl]
37     icon = wmappl.xpm
38     command = xterm -fg white -bg black -e man wmappl &
39     tooltip = open the wmappl man page
40     
41     [wprefs]
42     icon = gnustep.xpm
43     command = /usr/share/GNUstep/WPrefs.app/WPrefs &
44     
45     [mozilla]
46     icon = mozilla.xpm
47     command = mozilla &
48     
49     [xterm]
50     icon = glowx.xpm
51     command = xterm &
52     
53     [ghostview]
54     icon = ghost.xpm
55     command = gv &
56     
57     [xmms] 
58     icon = xmms.xpm
59     command = xmms &
60     tooltip = xmms gets a really really really   \
61               really really really really really \
62               really really really really really \
63               long tooltip!
64     
65     [ssh to work]
66     icon = ssh.xpm
67     command = xterm -fg green -bg black \
68               -e ssh -l user shell.work.com &
70 EOF
72 #startup script
73 cat > $startdir/pkg/usr/bin/wmappl << EOF
74 #!/bin/bash
75 #test if file already exists
76 #if yes, then launch
78 if (test -e \$HOME/.wmapplrc) then
79          exec wmappl-bin
81 #if no, get /usr/share/wmapplrc-default and copy to \$HOME
82 else
83         cp /usr/share/wmappl/wmapplrc-default  \$HOME/.wmapplrc
84         exec wmappl-bin
86 EOF
88   chmod +x $startdir/pkg/usr/bin/wmappl