updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / fs2_open-svn / PKGBUILD
blob2f98848ed044b0cacfc252c9b4e99e7bb8c40426
1 # Contributor: Lone_Wolf <lonewolf@xs4all.nl>
3 pkgname=fs2_open-svn
4 pkgver=7234
5 pkgrel=2
6 pkgdesc="An enhancement of the original Freespace 2 engine - SVN version"
7 url="http://scp.indiegames.us"
8 arch=('i686' 'x86_64')
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
17 _svnmod=fs2_open
19 build()
22   #Grab the sources with svn
23   cd $srcdir
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver) || return 1
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
28   fi
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
33   fi
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
40   make
42   #Install the license
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
47   
50 # vim:set ts=2 sw=2 et: