updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / bitfighter / PKGBUILD
blobe2bd92a325ee5bbb640eeb74ea703fc08ca96571
2 # Maintainer : archtux <antonio.arias99999 at gmail.com>
3  
4 pkgname=bitfighter
5 pkgver=015a
6 pkgrel=2
7 pkgdesc="A free multi-player 2-D space combat game with Robotron-like controls."
8 arch=('i686' 'x86_64')
9 url="http://bitfighter.org/"
10 license=('GPL2')
11 depends=('freealut' 'freeglut' 'openal')
12 makedepends=('lua')
13 source=(http://bitfighter.googlecode.com/files/$pkgname-$pkgver.tar.gz
14         bitfighter.sh
15         bitfighter.png
16         bitfighter.desktop)
17 md5sums=('b132aab82e7b9dd59e9d3b48b430227a'
18          '4c48351e246a5415df61c5ecb719f78a'
19          '8b28490af9deadd0a1a104ae372f5b08'
20          'e498568cdb2d92dff616cd095c1435a5')
23 build() {
24         mkdir -p $pkgdir/opt/bitfighter
25         install -Dm755 bitfighter.sh $pkgdir/usr/bin/bitfighter.sh
27         # Desktop icon
28         install -Dm644 bitfighter.png $pkgdir/usr/share/pixmaps/bitfighter.png
29         install -Dm644 bitfighter.desktop $pkgdir/usr/share/applications/bitfighter.desktop
31         cd $srcdir/$pkgname-$pkgver
32         make LUALIB=/usr/lib/liblua.a
33         cd $srcdir/$pkgname-$pkgver/installer
34         cp -R levels/ sfx/ $srcdir/$pkgname-$pkgver/exe
35         cd ../exe
36         cp -R levels/ robots/ scripts/ sfx/ bitfighter $pkgdir/opt/bitfighter
38         # Write permissions
39         chmod 4511 -R $pkgdir/opt/bitfighter
41         # License 
42         install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE