updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / searchandrescue2 / PKGBUILD
blob94bb7c6795135768913990cf0f00e7c16ccd2136
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=searchandrescue2
4 pkgver=2.3.1
5 pkgrel=4
6 pkgdesc="Helicopter based search and rescue flight simulator"
7 arch=('i686' 'x86_64')
8 url="http://sar2.sourceforge.net/"
9 license='GPL2'
10 depends=('freealut' 'libxmu' 'libxpm' 'mesa' 'sdl_image')
11 makedepends=('scons')
12 source=(http://sourceforge.net/projects/sar2/files/sar2-$pkgver.tar.bz2)
13 md5sums='180ad7c3a529e5c7c954b4ef6f758da0'
15 build() {
16   cd $srcdir/sar2-$pkgver
18   # Patch (add 'openal' in /src/SConscript env.Append LIBS array. Thanks to nous for the fix!)
19   sed -i "s/alut/alut\', \'openal/" src/SConscript
21   # Build
22   scons
24   # Binary
25   install -Dm755 bin/sar2 $pkgdir/usr/bin/sar2
27   # Desktop icon
28   install -Dm644 extra/sar2.xpm $pkgdir/usr/share/pixmaps/sar2.xpm
29   install -Dm644 extra/sar2.desktop $pkgdir/usr/share/applications/sar2.desktop
31   # Data files
32   mkdir -p $pkgdir/usr/share/sar2
33   cp -R data/* $pkgdir/usr/share/sar2
35   # Manual
36   install -Dm644 man/sar2.6.bz2 $pkgdir/usr/share/man/man6/sar2.6.bz2
38   # Icons
39   cd src/icons
40   for file in $(find . -name '*.xpm' -print); do
41   install -Dm644 $file $pkgdir/usr/share/pixmaps/$file
42   done