From 488d3624be68a1655fc8b40241f514e52855d18b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 18 Jun 2009 19:18:48 +0200 Subject: update --- warzone-svn/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 warzone-svn/PKGBUILD (limited to 'warzone-svn') diff --git a/warzone-svn/PKGBUILD b/warzone-svn/PKGBUILD new file mode 100644 index 0000000..c8334ce --- /dev/null +++ b/warzone-svn/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Ju Liu +# Contributor: Markus Pargmann + +pkgname=warzone-svn +pkgver=7703 +pkgrel=1 +pkgdesc="3D realtime strategy game on a future Earth (svn version)" +arch=('i686' 'x86_64') +url="http://wz2100.net/" +license=('GPL') +depends=('sdl_net' 'libgl' 'openal' 'libjpeg' 'libpng' 'libvorbis' 'libmad' 'physfs' 'quesoglc' 'flex' 'sqlite3') +makedepends=('subversion' 'gawk' 'zip' 'unzip' 'rsync' 'pkgconfig') +conflicts=('warzone') +provides=('warzone') +source=() +md5sums=() +options=('!strip') +export CFLAGS="-g -pipe" +export CXXFLAGS="-g -pipe" + +_svntrunk=http://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk +_svnmod=warzone + +build() { + cd $srcdir + svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod + msg "SVN checkout done or server timeout" + + msg "Preparing build dir" + rsync -a --delete $_svnmod/ build/ || return 1 + cd build || return 1 + + msg "Starting build" + ./autogen.sh + ./configure --prefix=/usr --enable-data --enable-debug=yes + sed -i -e 's/#define _XOPEN_SOURCE 600/#ifndef _XOPEN_SOURCE\n# define _XOPEN_SOURCE 600\n#endif/' config.h + + make || return 1 + make DESTDIR=$pkgdir install || return 1 +} -- cgit v1.2.3-24-g4f1b