wok-current view pingus/receipt @ rev 6678

Fix typo in librsvg.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Oct 12 15:53:17 2010 +0000 (2010-10-12)
parents 8fbfc72ff1a2
children c86656323ad6
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 gcc-lib-base"
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
28 # Fix scons and gcc build bug.
29 if [ ! -f patch.done ]; then
30 patch -p1 -i ../stuff/pingus-0.7.2_gcc4.u && touch patch.done
31 fi
33 scons
35 # the script install.sh uses cp --parents which is not implemented in busybox
36 # install.sh $PWD/_pkg/usr
37 mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/usr/share/pingus
38 cp -a pingus $PWD/_pkg/usr/bin
39 cp -a data $PWD/_pkg/usr/share/pingus
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/share/pingus $fs/usr/share
49 # the tarball doesn't contain any .desktop file, nor a pixmap
50 # let's create them
51 mkdir -p $_pkg/usr/share/pixmaps
52 mkdir -p $_pkg/usr/share/applications
53 cp -a $_pkg/usr/share/pingus/data/images/core/editor/actions.png \
54 $_pkg/usr/share/pixmaps/pingus.png
55 cat > $_pkg/usr/share/applications/pingus.desktop <<EOF
56 [Desktop Entry]
57 Name=Pingus
58 Exec=pingus -w
59 Type=Application
60 Categories=Application;Game;
61 Icon=pingus
62 EOF
64 }