updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / openra / PKGBUILD
blobeeb2b99e3b8200594a55c7701d76ead543131565
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Matthew Bowra-Dean <matthew@ijw.co.nz>
3 pkgname=openra
4 pkgver=20110906
5 pkgrel=1
6 pkgdesc="An open-source implementation of the Red Alert engine using .NET/mono and OpenGL"
7 arch=('any')
8 url="http://open-ra.org"
9 license=('GPL3')
10 install=openra.install
11 depends=('mono' 'openal' 'mesa' 'freetype2' 'sdl')
12 makedepends=('git' 'unzip')
13 optdepends=('nvidia-cg-toolkit: for using the alternative Cg renderer')
14 options=(!strip)
15 source=("https://github.com/OpenRA/OpenRA/zipball/release-$pkgver")
16 md5sums=('78389e52dca9144a30b658d74edd1d61')
18 build() {
19     unzip -f release-$pkgver
20     cd OpenRA-OpenRA-*
22     sed -i "s|prefix = .*|prefix = /usr|g" Makefile
23     make
26 package() {
27     cd OpenRA-OpenRA-*
29     mkdir -p "$pkgdir/usr/share/applications"
30     sed "s/{VERSION}/$pkgver/g" packaging/linux/openra.desktop > "$pkgdir/usr/share/applications/openra.desktop"
32     mkdir -p "$pkgdir/usr/share/icons/"
33     cp -r packaging/linux/hicolor "$pkgdir/usr/share/icons/"
35     make DESTDIR="$pkgdir" install
37     find "$pkgdir" -iname \*.mdb -delete
39     mv "$pkgdir/usr/share/openra/thirdparty/Tao/"* "$pkgdir/usr/share/openra/"
40     rm -r "$pkgdir/usr/share/openra/thirdparty"