updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wmcalc / PKGBUILD
blob0526ea6814b3e3c8ba12b7df92b32e9f45a02c2a
1 # Maintainer: Mario Blättermann <mariobl@gnome.org>
2 pkgname=wmcalc
3 pkgver=0.3
4 pkgrel=2
5 pkgdesc="Dockapp that performs all the functions (and eventually more) of a simple four function calculator"
6 arch=('i686' 'x86_64')
7 url="http://www.dockapps.org/file.php/id/130"
8 license=('GPL')
9 groups=(x11)
10 depends=('libxpm')
11 makedepends=()
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 changelog=
20 source=(http://www.dockapps.org/download.php/id/455/wmcalc-0.3.tar.gzr.gz)
21 noextract=()
22 md5sums=(23ecf19e956d19ef9dddb810989666c5)
24 build() {
25   cd "$srcdir/$pkgname-$pkgver"
27   make clean
28   make INCLUDES=-I/usr/include/X11
31 package() {
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
39 #startup script
40 cat > $startdir/pkg/usr/bin/wmcalc << EOF
41 #!/bin/bash
42 #test if file already exists
43 #if yes, then launch
45 if (test -e \$HOME/.wmcalc) then
46          exec wmcalc-bin
48 #if no, get /usr/share/doc/wmcalc/.wmcalc and copy to \$HOME
49 else
50         cp /usr/share/doc/wmcalc/.wmcalc  \$HOME/.wmcalc
51         exec wmcalc-bin
53 EOF
55   chmod +x $startdir/pkg/usr/bin/wmcalc
58 # vim:set ts=2 sw=2 et: