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>
|
|
|
|
|
|
|
|
# include global config
|
2011-04-10 04:47:10 +08:00
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
2010-12-13 03:49:04 +08:00
|
|
|
|
|
|
|
pkgname=0ad
|
2011-05-25 00:09:55 +08:00
|
|
|
pkgver=alpha_5
|
|
|
|
_pkgver=r09530-alpha
|
2011-06-08 00:23:47 +08:00
|
|
|
pkgrel=3
|
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-05-25 00:09:55 +08:00
|
|
|
source=(http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz
|
|
|
|
http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-data.tar.xz
|
|
|
|
$pkgname-nogtk.patch
|
|
|
|
$pkgname-archdetection.diff)
|
|
|
|
md5sums=('d8c66ab1ef2309be7aa5ff127ccf0e6c'
|
|
|
|
'b03270f6145053f4f517ca7bd6e5cdc4'
|
2011-04-10 04:25:49 +08:00
|
|
|
'7bb8119a4d611cdffa05177ea2603151'
|
2011-05-25 00:09:55 +08:00
|
|
|
'641a8ee6dab4f0c9a875fbd84410c46a')
|
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-05-25 00:09:55 +08:00
|
|
|
patch -uN update-workspaces.sh $srcdir/$pkgname-archdetection.diff
|
2011-02-13 17:04:25 +08:00
|
|
|
patch -uN update-workspaces.sh $srcdir/$pkgname-nogtk.patch
|
2011-03-15 03:40:34 +08:00
|
|
|
|
2011-02-13 17:04:25 +08:00
|
|
|
./update-workspaces.sh
|
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
|
|
|
}
|