1 # Contributor: Paul Bredbury <brebs@sent.com>
6 pkgdesc="Multiplayer retro sci-fi deathmatch game"
8 url="http://icculus.org/alienarena/rpa/"
11 depends=('curl' 'libgl' 'libjpeg' 'libxxf86dga' 'libxxf86vm' 'mesa' 'sdl' 'openal' 'libvorbis')
12 makedepends=('hd2u' 'subversion' 'unzip')
14 provides=('alienarena')
15 conflicts=('alienarena')
20 source=(alienarena.desktop)
22 md5sums=('46bbe3e3a93b2e5009ffd663ad462915')
25 # View at https://svn.icculus.org/alienarena/trunk/
26 _svntrunk="svn://svn.icculus.org/alienarena/trunk"
28 _datadir="/usr/share/${pkgname}"
29 _libdir="/usr/lib/${pkgname}"
36 # Force restoration of edited file
37 rm -f $_svnmod/source/Makefile $_svnmod/source/unix/gl_glx.c
39 msg "Checking for previous build"
40 if [[ -d $_svnmod/.svn ]]; then
41 msg "Retrieving updates"
45 msg "Retrieving complete sources"
46 svn co $_svntrunk || return 1
54 sed -i -e "s:lib64:lib:" Makefile || return 1
56 make clean || return 1
58 # Needed to compile fine with new versions of xf86dgaproto (Thanks Calimero)
59 sed -i "s/xf86dga.h/Xxf86dga.h/g" unix/gl_glx.c
62 WITH_DATADIR=yes WITH_LIBDIR=yes \
63 DATADIR="${_datadir}" LIBDIR="${_libdir}" \
67 install -D -m755 release/game.so $pkgdir/${_libdir}/arena/game.so || return 1
68 install -D -m755 release/crx $pkgdir/usr/bin/alienarena || return 1
69 install -D -m755 release/crded $pkgdir/usr/bin/alienarena-ded || return 1
74 find arena botinfo data1 -type f | while read _f ; do
75 install -D -m644 "$_f" "$pkgdir/$_datadir/$_f" || return 1
79 install -D -m644 aa.png $pkgdir/usr/share/pixmaps/alienarena.png || return 1
80 install -D -m644 $srcdir/alienarena.desktop $pkgdir/usr/share/applications/alienarena.desktop || return 1
86 mkdir -p $pkgdir/usr/share/doc/alienarena
87 install -m644 -t $pkgdir/usr/share/doc/alienarena {license,README}.txt || return 1
90 find $startdir/pkg -name "\.svn" -type d -print0 | xargs -0 rm -rf