wok-6.x diff pingus/receipt @ rev 1467
linux-source: build kernel in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 11:49:56 2008 +0000 (2008-10-04) |
parents | |
children | 8f4ac32ab3b1 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/pingus/receipt Sat Oct 04 11:49:56 2008 +0000 1.3 @@ -0,0 +1,58 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +# FIXME : Check if the tarball comes with a .desktop and a pixmap files 1.7 +# Then remove the section in genpkg_rules() that creates them 1.8 + 1.9 +PACKAGE="pingus" 1.10 +VERSION="0.7.2" 1.11 +CATEGORY="games" 1.12 +SHORT_DESC="Pingus is a free Lemmings-like game." 1.13 +MAINTAINER="chadi.elahmad@gmail.com" 1.14 + 1.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 +WEB_SITE="http://pingus.seul.org/" 1.17 +WGET_URL="http://pingus.seul.org/files/$TARBALL" 1.18 + 1.19 +DEPENDS="libSDL libsdl-image libsdl-mixer 1.20 +libboost-signals " 1.21 + 1.22 +BUILD_DEPENDS="scons 1.23 +libSDL-dev libsdl-image-dev libsdl-mixer-dev 1.24 +libboost-dev libboost-signals-dev " 1.25 + 1.26 +# Rules to configure and make the package. 1.27 +compile_rules() 1.28 +{ 1.29 + cd $src 1.30 + scons 1.31 + 1.32 + # the script install.sh uses cp --parents which is not implemented in busybox 1.33 + # install.sh $PWD/_pkg/usr 1.34 + mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/usr/share/pingus 1.35 + cp -a pingus $PWD/_pkg/usr/bin 1.36 + cp -a data $PWD/_pkg/usr/share/pingus 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/usr/share 1.43 + cp -a $_pkg/usr/bin $fs/usr 1.44 + cp -a $_pkg/usr/share/pingus $fs/usr/share 1.45 + 1.46 + # the tarball doesn't contain any .desktop file, nor a pixmap 1.47 + # let's create them 1.48 + mkdir -p $_pkg/usr/share/pixmaps 1.49 + mkdir -p $_pkg/usr/share/applications 1.50 + cp -a $_pkg/usr/share/pingus/data/images/core/editor/actions.png \ 1.51 + $_pkg/usr/share/pixmaps/pingus.png 1.52 + cat > $_pkg/usr/share/applications/pingus.desktop <<EOF 1.53 +[Desktop Entry] 1.54 +Name=Pingus 1.55 +Exec=pingus -w 1.56 +Type=Application 1.57 +Categories=Application;Game; 1.58 +Icon=pingus 1.59 +EOF 1.60 + 1.61 +}