sar2-2.3.1-2-i686
authorMelko <melko@frugalware.org>
Sat, 2 Jul 2011 18:36:21 +0000 (20:36 +0200)
committerMelko <melko@frugalware.org>
Sat, 2 Jul 2011 18:36:21 +0000 (20:36 +0200)
* fix executable's path

source/games-extra/sar2/FrugalBuild

index c6bb7b0..49c065c 100644 (file)
@@ -3,7 +3,7 @@
 
 pkgname=sar2
 pkgver=2.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Helicopter based search and rescue flight simulator"
 depends=('sdl' 'libxpm' 'libglu' 'freealut' 'libvorbis' 'libuuid')
 makedepends=('scons')
@@ -16,7 +16,8 @@ sha1sums=('4faed56bb39741a964b74c95b45bd39f9d039328')
 build() {
   Fcd
   scons || Fdie
-  Fexerel bin/$pkgname usr/bin/$pkgname
+  Fexerel bin/$pkgname usr/share/games/$pkgname/$pkgname
+  Fwrapper "SAR2_DATA=/usr/share/games/$pkgname /usr/share/games/$pkgname/$pkgname" $pkgname
   Fmkdir usr/share/{pixmaps,applications,man/man6}
   Finstallrel 644 extra/$pkgname.xpm usr/share/pixmaps/$pkgname.xpm
   Finstallrel 644 extra/$pkgname.desktop usr/share/applications/$pkgname.desktop