summaryrefslogtreecommitdiffstats
path: root/warzone-svn
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-06-18 19:18:48 +0200
committerFlorian Pritz <f-p@gmx.at>2009-06-18 19:18:48 +0200
commit488d3624be68a1655fc8b40241f514e52855d18b (patch)
tree92b5edbd9e5193c188cca3dd7b6e92ae562312b3 /warzone-svn
parentf15be7756cf924b6b116655846804d45d971581e (diff)
downloadaur-packages-488d3624be68a1655fc8b40241f514e52855d18b.tar.gz
aur-packages-488d3624be68a1655fc8b40241f514e52855d18b.tar.xz
update
Diffstat (limited to 'warzone-svn')
-rw-r--r--warzone-svn/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
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 <liuju86 at gmail dot com>
+# Contributor: Markus Pargmann <scosu@gmx.de>
+
+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
+}