2010-12-13 03:49:04 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-09-09 00:04:30 +08:00
|
|
|
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
|
2010-12-13 03:49:04 +08:00
|
|
|
|
2012-09-09 00:04:30 +08:00
|
|
|
pkgname=0ad
|
2013-12-25 04:06:30 +08:00
|
|
|
pkgver=0.0.15
|
2012-09-09 00:04:30 +08:00
|
|
|
_pkgver=$pkgver-alpha
|
2013-09-04 03:35:59 +08:00
|
|
|
pkgrel=1
|
2011-09-18 03:35:49 +08:00
|
|
|
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
|
|
|
|
screenshot=http://www.wildfiregames.com/0ad/images/news_images/dynamic-borders.jpg
|
2010-12-13 03:49:04 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://wildfiregames.com/0ad"
|
2012-09-09 00:04:30 +08:00
|
|
|
license=('GPL2' 'custom:MIT') # source licenses.
|
2013-12-25 04:06:30 +08:00
|
|
|
depends=('boost-libs' 'curl' 'enet' 'gamin' 'gloox' 'libogg' 'libpng' 'libvorbis' 'libxcursor' 'libxml2' 'mesa' 'nvidia-texture-tools' 'openal' 'sdl' 'zip' 'zlib' 0ad-data=$pkgver)
|
2012-09-09 00:04:30 +08:00
|
|
|
makedepends=('boost' 'python2')
|
|
|
|
replaces=(0ad-debug) # If someone wants a debug version, they should rebuild 0ad with config=debug.
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2010-12-13 03:49:04 +08:00
|
|
|
changelog=ChangeLog
|
2013-12-25 04:06:30 +08:00
|
|
|
source=(http://downloads.sourceforge.net/project/zero-ad/releases/$pkgname-$_pkgver-unix-build.tar.xz)
|
|
|
|
md5sums=('a651d81eb9b31da01e376ddaa597e954')
|
2010-12-13 03:49:04 +08:00
|
|
|
|
2011-09-18 03:35:49 +08:00
|
|
|
build() {
|
2012-09-09 00:04:30 +08:00
|
|
|
cd $srcdir/$pkgname-$_pkgver/build/workspaces
|
2011-03-15 03:40:34 +08:00
|
|
|
|
2012-05-17 01:21:12 +08:00
|
|
|
# NOTE: These sed commands are *not* likely to be changed between releases, like most patches.
|
2012-03-16 08:06:11 +08:00
|
|
|
sed \
|
|
|
|
-e 's/unix_names = { "boost_filesystem-mt", "boost_system-mt" },/unix_names = { "boost_filesystem", "boost_system" },/g' \
|
|
|
|
-e 's/unix_names = { "boost_signals-mt" },/unix_names = { "boost_signals" },/g' \
|
|
|
|
-i "${srcdir}/${pkgbase}-${_pkgver}/build/premake/extern_libs4.lua"
|
|
|
|
sed -i 's/export HOSTTYPE="$HOSTTYPE"/export HOSTTYPE="$CARCH"/g' ./update-workspaces.sh
|
2011-07-11 16:31:09 +08:00
|
|
|
|
2011-07-11 10:34:22 +08:00
|
|
|
# Atlas disabled because it requires GTK.
|
|
|
|
./update-workspaces.sh \
|
|
|
|
--disable-atlas \
|
2011-09-18 03:35:49 +08:00
|
|
|
--with-system-enet \
|
2011-12-27 18:42:19 +08:00
|
|
|
--with-system-nvtt \
|
2012-09-09 00:04:30 +08:00
|
|
|
--bindir=/usr/bin \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--datadir=/usr/share/${pkgname}/data
|
2011-09-18 03:35:49 +08:00
|
|
|
|
|
|
|
|
2012-09-09 00:04:30 +08:00
|
|
|
cd gcc
|
|
|
|
make config=release
|
2010-12-13 03:49:04 +08:00
|
|
|
}
|
|
|
|
|
2012-09-09 00:04:30 +08:00
|
|
|
package() {
|
|
|
|
|
|
|
|
cd $srcdir/$pkgname-$_pkgver
|
2011-09-18 03:35:49 +08:00
|
|
|
|
2012-09-09 00:04:30 +08:00
|
|
|
# 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
|
2011-09-18 03:35:49 +08:00
|
|
|
|
2012-09-09 00:04:30 +08:00
|
|
|
# Execution script.
|
2013-04-08 04:21:59 +08:00
|
|
|
install -Dm755 ./build/resources/$pkgname.sh $pkgdir/usr/bin/$pkgname
|
2011-09-18 03:35:49 +08:00
|
|
|
|
|
|
|
# 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.
|
2012-09-09 00:04:30 +08:00
|
|
|
install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
|
2011-09-18 03:35:49 +08:00
|
|
|
|
|
|
|
}
|