2010-12-13 03:49:04 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
|
|
|
|
pkgname=0ad
|
2011-07-11 10:34:22 +08:00
|
|
|
pkgver=alpha_6
|
|
|
|
_pkgver=r09786-alpha
|
|
|
|
pkgrel=1
|
2010-12-13 03:49:04 +08:00
|
|
|
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://wildfiregames.com/0ad"
|
|
|
|
license=('GPL2' 'CCPL')
|
2011-03-15 03:40:34 +08:00
|
|
|
depends=('binutils' 'boost' 'crypto++' 'curl' 'devil' 'enet' 'fam' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'mesa' 'nasm' 'openal' 'python2' 'sdl' 'zip' 'zlib')
|
2010-12-13 03:49:04 +08:00
|
|
|
makedepends=('cmake')
|
|
|
|
changelog=ChangeLog
|
2011-06-16 19:25:08 +08:00
|
|
|
source=(http://downloads.sourceforge.net/project/zero-ad/releases/$pkgname-$_pkgver-unix-build.tar.xz
|
2011-07-11 10:34:22 +08:00
|
|
|
http://downloads.sourceforge.net/project/zero-ad/releases/$pkgname-$_pkgver-unix-data.tar.xz)
|
|
|
|
md5sums=('cb4be5f4a9b74a535f39815a6b0c3e85'
|
|
|
|
'085da67a4a681a34418aba49f04cbd28')
|
2010-12-13 03:49:04 +08:00
|
|
|
|
2011-03-15 03:40:34 +08:00
|
|
|
build()
|
|
|
|
{
|
2011-02-13 17:04:25 +08:00
|
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces
|
2011-03-15 03:40:34 +08:00
|
|
|
|
2011-07-11 10:34:22 +08:00
|
|
|
sed -i \
|
|
|
|
's/unix_names = { "boost_signals-mt", "boost_filesystem-mt", "boost_system-mt" },/unix_names = { "boost_signals", "boost_filesystem", "boost_system" },/g' \
|
|
|
|
$srcdir/$pkgname-$_pkgver/build/premake/extern_libs.lua
|
2011-03-15 03:40:34 +08:00
|
|
|
|
2011-07-11 10:34:22 +08:00
|
|
|
# Atlas disabled because it requires GTK.
|
|
|
|
./update-workspaces.sh \
|
|
|
|
--disable-atlas \
|
|
|
|
--with-system-enet
|
2010-12-13 03:49:04 +08:00
|
|
|
|
2011-02-13 17:04:25 +08:00
|
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces/gcc
|
2010-12-13 03:49:04 +08:00
|
|
|
|
2011-05-25 00:09:55 +08:00
|
|
|
# CONFIG=Debug make
|
|
|
|
CONFIG=Release make
|
2010-12-13 03:49:04 +08:00
|
|
|
}
|
|
|
|
|
2011-03-15 03:40:34 +08:00
|
|
|
package()
|
|
|
|
{
|
2011-02-13 17:04:25 +08:00
|
|
|
install -d $pkgdir/usr/share/$pkgname
|
|
|
|
cp -r $srcdir/$pkgname-$_pkgver/binaries/* $pkgdir/usr/share/$pkgname
|
2011-06-08 00:23:47 +08:00
|
|
|
|
|
|
|
# Execution script:
|
|
|
|
install -d $pkgdir/usr/bin/
|
|
|
|
echo "#!/bin/sh" > $pkgdir/usr/bin/$pkgname
|
|
|
|
echo "cd /usr/share/0ad/system" >> $pkgdir/usr/bin/$pkgname
|
|
|
|
echo "./pyrogenesis $*" >> $pkgdir/usr/bin/$pkgname
|
|
|
|
chmod +x $pkgdir/usr/bin/$pkgname
|
2010-12-13 03:49:04 +08:00
|
|
|
}
|