blob: 5721910addaee52f7d1bd26b274d652cf3ffdab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $Id: PKGBUILD 112345 2014-06-01 02:33:08Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com>
# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=0ad
pkgver=a16
_pkgver=0.0.16-alpha
pkgrel=2
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' 'icu' 'nspr')
makedepends=('boost' 'cmake' 'mesa' 'zip' 'python2' 'libsm')
source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
"http://trac.wildfiregames.com/raw-attachment/ticket/2552/miniupnpc_api.patch")
md5sums=('3836bbcdf4edc57c2354b4fef6023146'
'6981595ba4b8eb21f9503304b090c9a9')
prepare() {
cd "$srcdir/$pkgname-$_pkgver/"
patch -p0 -i "../miniupnpc_api.patch"
sed -i "s/env python/env python2/g" libraries/source/cxxtest-4.3/bin/cxxtestgen
}
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
}
package() {
install -d "${pkgdir}"/usr/{bin,lib/0ad,share/"${pkgname}"/data}
cd "$srcdir/$pkgname-$_pkgver"
install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin"
install -Dm755 binaries/system/*.so "${pkgdir}/usr/lib/0ad"
cp -r binaries/data/l10n/ ${pkgdir}/usr/share/${pkgname}/data/
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"
}
# Fails?
#check() {
# cd "$srcdir/$pkgname-$_pkgver"
# LD_LIBRARY_PATH=binaries/system binaries/system/test
#}
|