updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / triplexinvaders / PKGBUILD
blobe035383437e3fb0add79a78ab01bd4054b4ecd65
1 # Contributor: Arthur Danskin <arthurdanskin@gmail.com>
3 pkgname=triplexinvaders
4 pkgver=1.08
5 pkgrel=3
6 pkgdesc="An alien invaders style computer game with 3d graphics"
7 arch=(i686 x86_64)
8 url="http://triplexinvaders.infogami.com"
9 license="MIT"
10 depends=('python-opengl' 'python-pygame' 'psyco')
11 source=(http://acm.jhu.edu/~arthur/invaders/$pkgname-$pkgver.tar.gz)
12 md5sums=('30a5c299c0411ed04428bccc90e46af1')
14 build() {
15   cd $startdir/src/$pkgname-$pkgver
16   install -D -m644 triplexinvaders.desktop $startdir/pkg/usr/share/applications/triplexinvaders.desktop
17   install -D -m644 LICENSE.txt $startdir/pkg/usr/share/licenses/triplexinvaders/LICENSE.txt
18   mkdir -p $startdir/pkg/usr/share/triplexinvaders
19   cp -r *.py models sound options.conf hiscores README.txt $startdir/pkg/usr/share/triplexinvaders
20   mkdir -p $startdir/pkg/usr/bin
21   echo -e "#!/bin/sh\ncd /usr/share/triplexinvaders\nexec python invaders.py\n" > $startdir/pkg/usr/bin/triplexinvaders
22   chmod 755 $startdir/pkg/usr/bin/triplexinvaders