updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / quake2world-server-svn / PKGBUILD
blob7927dff1ca1c67fd21e1871a7905ab170f19e526
1 # Contributor: Marcel Wysocki <maci@satgnu.net>
2 # Maintainer: Marcel Wysocki <maci@satgnu.net>
4 pkgname=quake2world-server-svn
5 pkgver=34
6 pkgrel=2
7 pkgdesc="A free, stand-alone, multiplayer-only iteration of Quake2, dedicated server."
8 arch=('i686' 'x86_64')
9 url="http://jdolan.dyndns.org/trac/wiki/Quake2World"
10 source=()
11 md5sums=()
12 license=('GPL')
13 depends=('zlib')
14 makedepends=('autoconf>=2.59' 'automake>=1.9.6' 'subversion')
15 provides=('quake2world-server')
16 conflicts=('quake2world-client')
17 install=('quake2world.install')
19 _svntrunk=svn://jdolan.dyndns.org/quake2world/trunk
20 _svnmod=quake2world-svn
22 build() {
23   cd $startdir/src
25   msg "Updating SVN entries for $_svnmod..."
26   svn co $_svntrunk --config-dir ./ $_svnmod  
27   mkdir -p $_svnmod-build
28   cp -r $_svnmod/* $_svnmod-build
30   msg "SVN checkout done or server timed out."
32   msg "Starting make..."
34   cd $_svnmod-build
35   autoreconf -i
36   ./configure --prefix=/usr --without-mysql --without-curl --with-tools='' --without-client
37   make || return 1
38   make DESTDIR=$startdir/pkg install
39   mv $startdir/pkg/usr/bin/quake2world $startdir/pkg/usr/bin/quake2world-ded
40   rm -rf ../$_svnmod-build