On 03/05/2011 22:19, Devil505 wrote:
Le 3 mai 2011 22:13, Sébastien VINCENT<[email protected]>  a écrit :
Hi,

frogatto is an old-school 2d platformer game, starring a certain quixotic
frog.

File attached
You can avoid to put this wrapper.

In build() try:

Fwrapper "cd /usr/share/frogatto&&  ./game $*" $pkgname

This will create the wrapper into /usr/bin automagically.

Just one other thing,

make game server || Fdie

would be better IMHO

rest seems OK for me



Hi,

the git patch

Sébastien VINCENT aka Baste
>From a47344aa08b07be048e89228bf8bb3cf912c2e70 Mon Sep 17 00:00:00 2001
From: Baste <[email protected]>
Date: Wed, 4 May 2011 21:36:01 +0200
Subject: [PATCH] frogatto-1.0.3-1-i686  * new package

---
 source/games-extra/frogatto/FrugalBuild |   38 +++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 source/games-extra/frogatto/FrugalBuild

diff --git a/source/games-extra/frogatto/FrugalBuild 
b/source/games-extra/frogatto/FrugalBuild
new file mode 100644
index 0000000..51ec379
--- /dev/null
+++ b/source/games-extra/frogatto/FrugalBuild
@@ -0,0 +1,38 @@
+# Compiling Time: 0.05 SBU
+# Maintainer: No Yet
+# Contributor : Baste <[email protected]>
+
+pkgname=frogatto
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="An old-school 2d platformer game, starring a certain quixotic frog"
+_F_desktop_name="Frogatto"
+_F_desktop_icon="$pkgname.png"
+_F_desktop_categories="Game;ArcadeGame"
+url="http://www.frogatto.com";
+depends=('sdl' 'sdlimage' 'sdl_mixer' 'sdl_ttf' 'libgl' 'libglu' 'glew' 
'libboost')
+makedepends=('boost')
+groups=('games-extra')
+archs=('i686' 'x86_64')
+up2date="Flasttar http://files.frogatto.com/";
+source=(http://files.frogatto.com/$pkgname-$pkgver.tar.bz2)
+sha1sums=('376371c1d16307b3ec753edc7eef4c6d06bbcb7f')
+
+build () {
+       Fcd
+       Fsed "boost_regex-mt" "boost_regex" Makefile
+       Fsed "boost_system-mt" "boost_system" Makefile
+       Fsed "boost_thread-mt" "boost_thread" Makefile
+       Fsed "boost_iostreams-mt" "boost_iostreams" Makefile
+       make game server || Fdie
+       Fexerel game usr/share/$pkgname/game
+       Fexerel server usr/share/$pkgname/server
+       for i in data images music sounds FreeMono.ttf
+       do
+               Fcprel $i usr/share/$pkgname/
+       done
+               Fmkdir usr/share/pixmaps
+       Fcprel  images/window-icon.png usr/share/pixmaps/$pkgname.png
+       Fdesktop2
+       Fwrapper "cd /usr/share/frogatto && ./game $*" $pkgname
+}
-- 
1.7.5

_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to