1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Markus Pargmann <scosu@gmx.de>
7 pkgdesc="3D realtime strategy game on a future Earth (svn version)"
9 url="http://wz2100.net/"
11 depends=('sdl_net' 'libgl' 'openal' 'libjpeg' 'libpng' 'libvorbis' 'libmad' 'physfs' 'quesoglc' 'flex' 'sqlite3')
12 makedepends=('subversion' 'gawk' 'zip' 'unzip' 'rsync' 'pkgconfig')
18 export CFLAGS="-g -pipe"
19 export CXXFLAGS="-g -pipe"
21 _svntrunk=http://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk
26 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27 msg "SVN checkout done or server timeout"
29 msg "Preparing build dir"
30 rsync -a --delete $_svnmod/ build/ || return 1
35 ./configure --prefix=/usr --enable-data --enable-debug=yes
36 sed -i -e 's/#define _XOPEN_SOURCE 600/#ifndef _XOPEN_SOURCE\n# define _XOPEN_SOURCE 600\n#endif/' config.h
39 make DESTDIR=$pkgdir install || return 1