1 # Maintainer: Simone Sclavi 'Ito <darkhado@gmail.com>
5 pkgdesc="A violent, sexy, multiplayer first person shooter based on the ioquake3 engine (latest development version)"
7 url="http://www.openarena.ws"
9 depends=('sdl' 'libvorbis' 'curl')
10 makedepends=('subversion')
12 _svntrunk=http://openarena.ws/svn/
17 if [ -d $_svnmod/.svn ]; then
18 (cd $_svnmod && svn up -r $pkgver)
20 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23 msg "SVN checkout done or server timeout"
24 msg "Starting make..."
26 ##rm -rf $_svnmod-build
27 ##cp -r $_svnmod $_svnmod-build
42 mkdir -p $pkgdir/usr/share/${pkgname}/{baseoa,missionpack}
43 mv mp-pak0.pk3 $pkgdir/usr/share/${pkgname}/missionpack
44 install -m644 *.pk3 $pkgdir/usr/share/${pkgname}/baseoa
46 [ "$CARCH" = x86_64 ] && cd bin/release-linux-x86_64
47 [ "$CARCH" = i686 ] && cd bin/release-linux-i386
48 install -m755 * $pkgdir/usr/share/${pkgname}
51 echo "#!/bin/sh" >> $OABIN
52 echo "cd /usr/share/${pkgname}" >> $OABIN
53 [ "$CARCH" = x86_64 ] && echo "./openarena.x86_64" >> $OABIN
54 [ "$CARCH" = i686 ] && echo "./openarena.i386" >> $OABIN
56 install -Dm755 $OABIN $pkgdir/usr/bin/${OABIN}