wok-6.x view pingus/receipt @ rev 2052

gtk+: (build)depends on libgio
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jan 17 20:50:01 2009 +0100 (2009-01-17)
parents
children 8f4ac32ab3b1
line source
1 # SliTaz package receipt.
3 # FIXME : Check if the tarball comes with a .desktop and a pixmap files
4 # Then remove the section in genpkg_rules() that creates them
6 PACKAGE="pingus"
7 VERSION="0.7.2"
8 CATEGORY="games"
9 SHORT_DESC="Pingus is a free Lemmings-like game."
10 MAINTAINER="chadi.elahmad@gmail.com"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://pingus.seul.org/"
14 WGET_URL="http://pingus.seul.org/files/$TARBALL"
16 DEPENDS="libSDL libsdl-image libsdl-mixer
17 libboost-signals "
19 BUILD_DEPENDS="scons
20 libSDL-dev libsdl-image-dev libsdl-mixer-dev
21 libboost-dev libboost-signals-dev "
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 scons
29 # the script install.sh uses cp --parents which is not implemented in busybox
30 # install.sh $PWD/_pkg/usr
31 mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/usr/share/pingus
32 cp -a pingus $PWD/_pkg/usr/bin
33 cp -a data $PWD/_pkg/usr/share/pingus
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/share/pingus $fs/usr/share
43 # the tarball doesn't contain any .desktop file, nor a pixmap
44 # let's create them
45 mkdir -p $_pkg/usr/share/pixmaps
46 mkdir -p $_pkg/usr/share/applications
47 cp -a $_pkg/usr/share/pingus/data/images/core/editor/actions.png \
48 $_pkg/usr/share/pixmaps/pingus.png
49 cat > $_pkg/usr/share/applications/pingus.desktop <<EOF
50 [Desktop Entry]
51 Name=Pingus
52 Exec=pingus -w
53 Type=Application
54 Categories=Application;Game;
55 Icon=pingus
56 EOF
58 }