updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gridwars / PKGBUILD
blob2289dde329a52d4c1dd317d079ac81fc43196795
1 # Contributor: Shockrates <antisocrates@gmail.com>
2 pkgname=gridwars
3 pkgver=9.3.2006
4 pkgrel=6
5 pkgdesc="Grid Wars 2: A clone of Geometry Wars"
6 arch=('i686' 'x86_64')
7 url="http://gridwars.marune.de/"
8 license=()
9 [ "$CARCH" = "i686" ] && depends=('mesa' 'libgl' 'libstdc++5' 'alsa-oss')
10 [ "$CARCH" = "x86_64" ] && depends=('lib32-mesa' 'lib32-libgl' 'lib32-libstdc++5' 'lib32-libxxf86vm' 'lib32-alsa-oss')
11 source=('http://gridwars.marune.de/bin/gridwars_lin.zip'
12         'gridwars.desktop')
13 md5sums=('15a03f8c8855f3ef93c5821f39ced356'
14          '917f880c3ba6bdf6f7fe483a193d9614')
16 build() {
17         cd $startdir/src
18         mkdir -p $pkgdir/usr/{bin,share/{applications,pixmaps,games/gridwars/{gfx/{High,Med,Low,solid},music,sounds}}}
19         install -D -m644 $srcdir/bass.dll $pkgdir/usr/share/games/gridwars/
20         install -D -m664 $srcdir/Config.txt $pkgdir/usr/share/games/gridwars/Config.txt
21         install -D -m755 $srcdir/gridwars $pkgdir/usr/share/games/gridwars/
22         install -D -m644 $srcdir/gfx/glow.bmp $pkgdir/usr/share/games/gridwars/gfx/
23         for i in High Low Med solid ; do
24                 install -D -m644 $srcdir/gfx/$i/* $pkgdir/usr/share/games/gridwars/gfx/$i
25         done
26         install -D -m644 $srcdir/music/* $pkgdir/usr/share/games/gridwars/music/
27         install -D -m644 $srcdir/sounds/* $pkgdir/usr/share/games/gridwars/sounds/
28         install -D -m644 $srcdir/gridwars.desktop $pkgdir/usr/share/applications/gridwars.desktop
29         install -D -m644 $srcdir/gfx/High/whiteplayer.png $pkgdir/usr/share/pixmaps/gridwars.png
32 package() {
33         ln -sf /usr/share/games/gridwars/gridwars ${pkgdir}/usr/bin/gridwars
34         chgrp games $pkgdir/usr/share/games/gridwars/Config.txt