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