wok-6.x annotate pingus/receipt @ rev 5458

ruby: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 05 17:26:25 2010 +0200 (2010-05-05)
parents 8fbfc72ff1a2
children c86656323ad6
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
pankso@3425 16 DEPENDS="libsdl libsdl-image libsdl-mixer
pascal@5005 17 libboost-signals gcc-lib-base"
pascal@1136 18
pascal@1136 19 BUILD_DEPENDS="scons
pankso@3425 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
erjo@4718 27
erjo@4718 28 # Fix scons and gcc build bug.
erjo@4718 29 if [ ! -f patch.done ]; then
erjo@4718 30 patch -p1 -i ../stuff/pingus-0.7.2_gcc4.u && touch patch.done
erjo@4718 31 fi
erjo@4718 32
pascal@1136 33 scons
pascal@1136 34
pascal@1136 35 # the script install.sh uses cp --parents which is not implemented in busybox
pascal@1136 36 # install.sh $PWD/_pkg/usr
pascal@1136 37 mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/usr/share/pingus
pascal@1136 38 cp -a pingus $PWD/_pkg/usr/bin
pascal@1136 39 cp -a data $PWD/_pkg/usr/share/pingus
pascal@1136 40 }
pascal@1136 41
pascal@1136 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 43 genpkg_rules()
pascal@1136 44 {
pascal@1136 45 mkdir -p $fs/usr/share
pascal@1136 46 cp -a $_pkg/usr/bin $fs/usr
pascal@1136 47 cp -a $_pkg/usr/share/pingus $fs/usr/share
pascal@1136 48
pascal@1136 49 # the tarball doesn't contain any .desktop file, nor a pixmap
pascal@1136 50 # let's create them
pascal@1136 51 mkdir -p $_pkg/usr/share/pixmaps
pascal@1136 52 mkdir -p $_pkg/usr/share/applications
pascal@1136 53 cp -a $_pkg/usr/share/pingus/data/images/core/editor/actions.png \
pascal@1136 54 $_pkg/usr/share/pixmaps/pingus.png
pascal@1136 55 cat > $_pkg/usr/share/applications/pingus.desktop <<EOF
pascal@1136 56 [Desktop Entry]
pascal@1136 57 Name=Pingus
pascal@1136 58 Exec=pingus -w
pascal@1136 59 Type=Application
pascal@1136 60 Categories=Application;Game;
pascal@1136 61 Icon=pingus
pascal@1136 62 EOF
pascal@1136 63
pascal@1136 64 }