1 # Contributor: Dragonlord <dragonlord at seznam dot cz>
5 pkgdesc="A tron-like lightcycle game with a nice 3D perspective."
8 depends=('libgl' 'gcc-libs' 'smpeg' 'sdl_sound' 'libpng')
9 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver-source.tar.gz \
10 gltron-0.70-configure.patch \
11 gltron-0.70-prototypes.patch \
12 gltron-0.70-debian.patch \
15 url="http://www.gltron.org"
16 md5sums=('300e54914844f36c199415d6d8b0372a'
17 '9cd844f561d537df49a35fac21d5b51c'
18 '744c0f80394f8713aebdf7038044570e'
19 'd53c903bba366af12c1fdcc578d32da1'
20 '1f36bf3e65cc8791301b79b9024ab51a'
21 '132f0b0fbd5340c618e235dac27bda9d')
24 cd $startdir/src/$pkgname-$pkgver
26 patch -Np0 -i $startdir/gltron-0.70-configure.patch || return 1
27 patch -Np0 -i $startdir/gltron-0.70-prototypes.patch || return 1
29 if [ "$CARCH" = "x86_64" ]; then
30 patch -Np0 -i $startdir/gltron-0.70-debian.patch || return 1
33 ./configure --prefix=/usr --enable-warn=off
35 make DESTDIR="$startdir/pkg" install
37 install -D -m644 "$startdir/gltron.png" \
38 "$startdir/pkg/usr/share/gltron/pics/gltron.png"
39 install -D -m644 "$startdir/gltron.desktop" \
40 "$startdir/pkg/usr/share/applications/gltron.desktop"