1 # Maintainer: Mario Blättermann <mariobl@gnome.org>
5 pkgdesc="Dockapp that performs all the functions (and eventually more) of a simple four function calculator"
7 url="http://www.dockapps.org/file.php/id/130"
20 source=(http://www.dockapps.org/download.php/id/455/wmcalc-0.3.tar.gzr.gz)
22 md5sums=(23ecf19e956d19ef9dddb810989666c5)
25 cd "$srcdir/$pkgname-$pkgver"
28 make INCLUDES=-I/usr/include/X11
32 cd "$srcdir/$pkgname-$pkgver"
34 mkdir -p $startdir/pkg/usr/bin/
35 mkdir -p $startdir/pkg/usr/share/doc/$pkgname/
36 /bin/install -c $pkgname $startdir/pkg/usr/bin/wmcalc-bin
37 /bin/install -c README COPYING .wmcalc $startdir/pkg/usr/share/doc/$pkgname
40 cat > $startdir/pkg/usr/bin/wmcalc << EOF
42 #test if file already exists
45 if (test -e \$HOME/.wmcalc) then
48 #if no, get /usr/share/doc/wmcalc/.wmcalc and copy to \$HOME
50 cp /usr/share/doc/wmcalc/.wmcalc \$HOME/.wmcalc
55 chmod +x $startdir/pkg/usr/bin/wmcalc
58 # vim:set ts=2 sw=2 et: