1 # Maintainer: Marcin Skory <armitage at gfreedom dot org>
5 pkgdesc='A free, enhanced port of the classic FPS "Marathon 2" by Bungie Software (SVN version)'
7 url="http://marathon.sourceforge.net/"
9 depends=('sdl_ttf' 'libmad' 'libsndfile' 'libvorbis' 'mesa' 'sdl_image' 'sdl_net' 'smpeg' 'speex' 'zziplib')
10 makedepends=('subversion' 'boost' 'lua>=5.1')
11 optdepends=('alephone-emr: community-made scenario' \
12 'alephone-eternalx: community-made scenario' \
13 'alephone-evil: community-made scenario' \
14 'alephone-marathon: M1A1 data converted for AlephOne' \
15 'alephone-marathon2: original data for Marathon 2: Durandal' \
16 'alephone-infinity: original data for Marathon Infinity' \
17 'alephone-red: community-made scenario' \
18 'alephone-rubiconx: community-made scenario' \
19 'alephone-tempus_irae: community-made scenario')
21 conflicts=('alephone')
23 _svntrunk=https://marathon.svn.sourceforge.net/svnroot/marathon/trunk
28 # forcing to ignore externals during checkout due to someone's bright idea to
29 # bundle all the scenarios plus hi-res textures with the source tree; we have
30 # separate packages for that and right now ignoring it doesn't seem to break
31 # anything (at least not yet)
32 if [ -d $_svnmod/.svn ]; then
33 (cd $_svnmod && svn up --ignore-externals -r $pkgver)
35 svn co $_svntrunk --config-dir ./ --ignore-externals -r $pkgver $_svnmod
38 msg "SVN checkout done or server timeout"
39 msg "Starting make..."
41 rm -rf "$srcdir/$_svnmod-build"
42 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
43 cd "$srcdir/$_svnmod-build"
47 sed "s/PACKAGE='AlephOne'/PACKAGE='alephone'/g" -i configure
48 ./configure --prefix=/usr
53 cd "$srcdir/$_svnmod-build"
54 make DESTDIR="$pkgdir/" install