1 # Contributor: Lone_Wolf <lonewolf@xs4all.nl>
6 pkgdesc="An enhancement of the original Freespace 2 engine - SVN version"
7 url="http://scp.indiegames.us"
9 license=('custom:freespace2')
10 depends=('openal' 'libvorbis' 'sdl' 'mesa' 'libtheora')
11 makedepends=('subversion' 'lua')
12 install=fs2_open-svn.install
13 source=(fs2_open-svn.patch)
14 md5sums=('553b1d17d6486993f07e133813225626')
16 _svntrunk=svn://svn.icculus.org/fs2open/trunk/fs2_open
22 #Grab the sources with svn
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver) || return 1
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
29 msg "SVN checkout done or server timeout"
30 msg "Starting make..."
31 if [ -d $srcdir/$_svnmod-build ]; then
32 rm -r $srcdir/$_svnmod-build
34 cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
35 cd $srcdir/$_svnmod-build
37 #Patch and build the engine
38 patch -Np0 -i $srcdir/fs2_open-svn.patch || return 1
39 ./autogen.sh --enable-speech --enable-inferno
43 install -D -m644 COPYING $pkgdir/usr/share/licenses/freespace2/COPYING
45 #Install the engine (The engine is compiled to one binary..)
46 install -D -m755 code/fs2_open_INF_r $pkgdir/usr/bin/fs2_open_r
50 # vim:set ts=2 sw=2 et: