# # Games Packages for Chakra, part of chakra-project.org # # Maintainer: Adrian Chaves Fernandez (Gallaecio) pkgname=0ad pkgver=0.0.15 _pkgver=$pkgver-alpha pkgrel=3 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game" screenshot=http://www.wildfiregames.com/0ad/images/news_images/dynamic-borders.jpg arch=('i686' 'x86_64') url="http://wildfiregames.com/0ad" license=('GPL2' 'custom:MIT') # source licenses. depends=('boost-libs' 'curl' 'enet' 'gamin' 'gloox' 'libogg' 'libpng' 'libvorbis' 'libxcursor' 'libxml2' 'mesa' 'miniupnpc' 'nvidia-texture-tools' 'openal' 'sdl' 'zip' 'zlib' 0ad-data=$pkgver) makedepends=('boost' 'python2') replaces=(0ad-debug) # If someone wants a debug version, they should rebuild 0ad with config=debug. categories=('games') changelog=ChangeLog source=(http://downloads.sourceforge.net/project/zero-ad/releases/$pkgname-$_pkgver-unix-build.tar.xz) md5sums=('a651d81eb9b31da01e376ddaa597e954') build() { cd $srcdir/$pkgname-$_pkgver/build/workspaces # Atlas disabled because it requires GTK. ./update-workspaces.sh \ --disable-atlas \ --with-system-enet \ --with-system-miniupnpc \ --with-system-nvtt \ --bindir=/usr/bin \ --libdir=/usr/lib \ --datadir=/usr/share/${pkgname}/data cd gcc make config=release } package() { cd $srcdir/$pkgname-$_pkgver # Manual installation. install -d ${pkgdir}/usr/{bin,lib} install -Dm755 ${srcdir}/${pkgbase}-${_pkgver}/binaries/system/pyrogenesis ${pkgdir}/usr/bin install -Dm755 ${srcdir}/${pkgbase}-${_pkgver}/binaries/system/*.so{,.1.0} ${pkgdir}/usr/lib # Execution script. install -Dm755 ./build/resources/$pkgname.sh $pkgdir/usr/bin/$pkgname # Desktop Integration. install -D ./build/resources/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop install -D ./build/resources/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png # Legal. install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt }