updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / openredalert / PKGBUILD
blob57ca235c009a5f4c7e1b833446b57b28dc0284bb
1 # Contributor: Alexander Minges <athemis at ish dot de>
2 pkgname=openredalert
3 pkgver=r462
4 pkgrel=2
5 arch=('i686' 'x86_64')
6 pkgdesc="Westwood Red Alert game engine"
7 url="http://www.ohloh.net/projects/openredalert"
8 license=('GPL')
9 depends=('sdl' 'sdl_mixer')
10 makedepends=('make')
11 provides=('openredalert_bin')
12 source=( http://downloads.sourceforge.net/sourceforge/openredalert/$pkgname-$pkgver-src.tar.gz openredalert.sh)
13 install=('openredalert.install')
14 md5sums=('37501829e76e5cc4775352ae36ab906e'\
15          'e3de4c227a868722f40fc6ccfd574ffc')
17 build() {
18   cd $startdir/src/$pkgname
19   make VERBOSE=1 || return 1
20   mkdir -p $pkgdir/usr/share/openredalert/data/settings/{ra,} $pkgdir/usr/share/openredalert/data/mix $pkgdir/usr/bin
21   cp $startdir/src/openredalert.sh $pkgdir/usr/bin/openredalert
22   chmod 755 $pkgdir/usr/bin/openredalert
23   install -D -m 644 bin/data/settings/* $pkgdir/usr/share/openredalert/data/settings
24   install -D -m 644 bin/data/settings/ra/* $pkgdir/usr/share/openredalert/data/settings/ra
25   install -D -m 755 bin/openredalert $pkgdir/usr/share/openredalert/openredalert