# $Id: PKGBUILD 105901 2014-02-18 12:42:08Z bpiotrowski $ # Maintainer: Sven-Hendrik Haase # Contributor: t3ddy # Contributor: Adrián Chaves Fernández (Gallaecio) pkgname=0ad pkgver=a15 _pkgver=0.0.15-alpha pkgrel=4 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game" arch=('i686' 'x86_64') url="http://play0ad.com/" license=('GPL2' 'CCPL') depends=('binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'openal' 'sdl' 'wxgtk2.8' 'zlib' 'libgl' '0ad-data' 'glu' 'gloox' 'miniupnpc') makedepends=('boost' 'cmake' 'mesa' 'zip' 'python2' 'libsm') source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz" "miniupnpc-1.9.patch") md5sums=('a651d81eb9b31da01e376ddaa597e954' 'f3d27da4944d42fcf6b4153e54dc4600') prepare() { cd "$srcdir/$pkgname-$_pkgver" patch -p1 -i ../miniupnpc-1.9.patch } build() { cd "$srcdir/$pkgname-$_pkgver/build/workspaces" unset CPPFLAGS # for le spidermonkey export WX_CONFIG=/usr/bin/wx-config-2.8 ./update-workspaces.sh \ --with-system-enet \ --with-system-miniupnpc \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ --datadir=/usr/share/${pkgname}/data cd "$srcdir/$pkgname-$_pkgver/build/workspaces/gcc" make CONFIG=Release } package() { install -d "${pkgdir}"/usr/{bin,lib/0ad} cd "$srcdir/$pkgname-$_pkgver" install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin" install -Dm755 binaries/system/*.so{,.1.0} "${pkgdir}/usr/lib/0ad" install -Dm755 build/resources/${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}" install -Dm644 build/resources/${pkgname}.desktop \ "${pkgdir}/usr/share/applications/${pkgname}.desktop" install -Dm644 build/resources/${pkgname}.png \ "${pkgdir}/usr/share/pixmaps/${pkgname}.png" }