updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / glestadv / PKGBUILD
blobffa2fa35329444449c08f0637a486244e17bf803
1 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
3 pkgname=glestadv
4 _srcnam=glestae
5 pkgver=0.3.93
6 pkgrel=1
7 pkgdesc="Glest Advanced Engine is a community driven project which extends and improves on Glest."
8 arch=('i686' 'x86_64')
9 url="https://sourceforge.net/apps/trac/glestae/"
10 license=('GPL2')
11 depends=('sdl' 'libvorbis' 'openal' 'mesa' 'lua' 'physfs' 'glew')
12 makedepends=('cmake')
13 optdepends=('wxgtk: for optional gae_mapeditor, gae_g3dviewer, and glest_configurator'
14             'libmxl2: for extra xml handling'
15             'cppunit: for testing'
16             'doxygen: for documentation')
17 conflicts=('glestae-svn')
18 install=glestadv.install
19 source=("http://downloads.sourceforge.net/${_srcnam}/${_srcnam}-src-${pkgver}.tar.bz2")
20 md5sums=('83fec41c3c163dfb8437df93e98b5901')
22 build() {
23   cd ${_srcnam}-src-${pkgver}
24   mkdir -p build
25   cd build
26     cmake -G "Unix Makefiles" \
27       -DCMAKE_INSTALL_PREFIX:PATH=/usr \
28       -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
29       -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
30       -DBUILD_TYPE=Release .. || return 1
32     make VERBOSE=1 || return 1
35 package() {
36   cd ${_srcnam}-src-${pkgver}/build
37   make install DESTDIR="$pkgdir" || return 1