1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Matthew Bowra-Dean <matthew@ijw.co.nz>
6 pkgdesc="An open-source implementation of the Red Alert engine using .NET/mono and OpenGL"
8 url="http://open-ra.org"
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')
15 source=("https://github.com/OpenRA/OpenRA/zipball/release-$pkgver")
16 md5sums=('78389e52dca9144a30b658d74edd1d61')
19 unzip -f release-$pkgver
22 sed -i "s|prefix = .*|prefix = /usr|g" Makefile
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"