blob: d56f026ebab4b22253413941e201d57fe1b475ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: archtux <antonio dot arias99999 at gmail dot com>
pkgname=searchandrescue2
pkgver=2.5.0
pkgrel=1
pkgdesc="Helicopter based search and rescue flight simulator"
arch=('i686' 'x86_64')
url="http://sar2.sourceforge.net/"
license=('GPL2')
depends=('freealut' 'libxmu' 'libxpm' 'mesa' 'sdl_image')
makedepends=('scons')
#source=(http://sourceforge.net/projects/sar2/files/sar2-$pkgver.tar.bz2)
source=(https://github.com/hsanjuan/sar2/archive/master.zip)
md5sums=('7d14e076628c46f9285647a7671cc1ed')
prepare() {
cd $srcdir/sar2-master
# Patch (add 'openal' in /src/SConscript env.Append LIBS array. Thanks to nous for the fix!)
sed -i "s/alut/alut\', \'openal/" src/SConscript
}
build() {
cd $srcdir/sar2-master
scons
}
package() {
cd $srcdir/sar2-master
# Binary
install -Dm755 bin/sar2 $pkgdir/usr/bin/sar2
# Desktop icon
install -Dm644 extra/sar2.xpm $pkgdir/usr/share/pixmaps/sar2.xpm
install -Dm644 extra/sar2.desktop $pkgdir/usr/share/applications/sar2.desktop
# Data files
mkdir -p $pkgdir/usr/share/sar2
cp -R data/* $pkgdir/usr/share/sar2
# Man page
install -Dm644 man/sar2.6.bz2 $pkgdir/usr/share/man/man6/sar2.6.bz2
# Icons
cd src/icons
for file in $(find . -name '*.xpm' -print); do
install -Dm644 $file $pkgdir/usr/share/pixmaps/$file
done
}
|