Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4eddfbd23bdb040c1f5609e7c80adc3a8ca9be23

commit 4eddfbd23bdb040c1f5609e7c80adc3a8ca9be23
Author: Devil505 <devil505li...@gmail.com>
Date:   Sat Apr 23 11:51:52 2011 +0200

megaglest-3.5.0-1-i686
* fixing build

diff --git a/source/games-extra/megaglest/FrugalBuild 
b/source/games-extra/megaglest/FrugalBuild
index 1ba3afe..b35d7a0 100644
--- a/source/games-extra/megaglest/FrugalBuild
+++ b/source/games-extra/megaglest/FrugalBuild
@@ -33,15 +33,15 @@ build() {
Fexe ${pkgname}-source-${pkgver}/mk/linux/megaglest.bin 
usr/share/${pkgname}/$pkgname
Fexe ${pkgname}-source-${pkgver}/mk/linux/megaglest_configurator 
usr/bin/glest_configurator
Fexe ${pkgname}-source-${pkgver}/mk/linux/megaglest_editor usr/bin/glest_editor
-  Finstall 644 glest.ini usr/share/$pkgname
-  Finstall 644 glestkeys.ini usr/share/$pkgname
-  Finstall 644 servers.ini usr/share/$pkgname
+  Finstall 644 ${pkgname}-source-${pkgver}/glest.ini usr/share/$pkgname
+  Finstall 644 ${pkgname}-source-${pkgver}/glestkeys.ini usr/share/$pkgname
+  Finstall 644 ${pkgname}-source-${pkgver}/servers.ini usr/share/$pkgname

# Desktop
-  sed -i s/Exec=.*/Exec=${pkgname}/g ${pkgname}.desktop
-  sed -i s/Icon=.*/Icon=${pkgname}/g ${pkgname}.desktop
-  Finstall 644 ${pkgname}.desktop usr/share/applications/${pkgname}.desktop
-  Finstall 644 ${pkgname}.png usr/share/pixmaps/${pkgname}.png
+  Finstall 644 ${pkgname}-source-${pkgver}/${pkgname}.desktop 
usr/share/applications/${pkgname}.desktop
+  Finstall 644 ${pkgname}-source-${pkgver}/${pkgname}.png 
usr/share/pixmaps/${pkgname}.png
+  Fsed "Exec=.*" "Exec=${pkgname}" 
$Fdestdir/usr/share/applications/${pkgname}.desktop
+  Fsed "Icon=.*" "Icon=${pkgname}" 
$Fdestdir/usr/share/applications/${pkgname}.desktop

## Moving datas
cd $Fsrcdir || Fdie
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to