1 # Contributor: Shockrates <antisocrates@gmail.com>
5 pkgdesc="Grid Wars 2: A clone of Geometry Wars"
7 url="http://gridwars.marune.de/"
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'
13 md5sums=('15a03f8c8855f3ef93c5821f39ced356'
14 '917f880c3ba6bdf6f7fe483a193d9614')
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
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
33 ln -sf /usr/share/games/gridwars/gridwars ${pkgdir}/usr/bin/gridwars
34 chgrp games $pkgdir/usr/share/games/gridwars/Config.txt