updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / 0ad / PKGBUILD
blob33bc9173c1c99b2eb4d09c8d5404c653e5d88a03
1 # Maintainer: t3ddy  <t3ddy1988 "at" gmail {dot} com>
2 # Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
4 pkgname=0ad
5 pkgver=alpha_8
6 _pkgver=r10803-alpha
7 pkgrel=1
8 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
9 arch=('i686' 'x86_64')
10 url="http://wildfiregames.com/0ad"
11 license=('GPL2' 'CCPL')
12 depends=('binutils' 'boost-libs' 'curl' 'enet>=1.3' 'gamin' 'libogg' 'libpng' 'libvorbis' 'libxml2' 'openal' 'openexr' 'python2' 'sdl' 'wxgtk' 'zip' 'zlib')
13 makedepends=('boost' 'cmake')
14 conflicts=('0ad-svn' '0ad-ppa-wfg')
15 provides=('0ad')
16 source=("http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
17         "http://releases.wildfiregames.com/$pkgname-$_pkgver-unix-data.tar.xz"
18         "${pkgname}.sh"
19         "${pkgname}.install")
20 sha256sums=('fbf91d8482267384f8fb3fdd8a71e79ed71d73489c531f814fca70840043b928'
21             'cb4d2b4c4ce1eadff4d34127664a6de02f9b062007275507d80d9ee6ebbae7d9'
22             '08ebf47a4a977bac8a50a161c47cfeb199023f7f907858798f12b15a514b0053'
23             'e0e79e936447e2d1833f423aae3323eac6da74cb23519be98b3de2753f0cac60')
25 build(){
26   cd "$srcdir/$pkgname-$_pkgver/build/workspaces"
28   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_libs4.lua"
30   ./update-workspaces.sh --with-system-enet
32   cd "$srcdir/$pkgname-$_pkgver/build/workspaces/gcc"
34   make CONFIG=Release
37 package(){
38   install -d ${pkgdir}/opt/${pkgname}
39   cp -r ${srcdir}/${pkgname}-${_pkgver}/binaries/* ${pkgdir}/opt/${pkgname}
41   install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
43   install -D -m 0644 "${srcdir}/$pkgname-$_pkgver/build/resources/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
44   install -D -m 0644 "${srcdir}/$pkgname-$_pkgver/build/resources/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"