wok view pingus/receipt @ rev 7674

Fixed linux. Need to make folder PWD/_pkg before adding bzImage to it. Also i'm force copying kernel config file now so we have the right config. It is copyed twice so its needed and doesn't hunt anything i think.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 16 17:16:06 2010 +0000 (2010-12-16)
parents f3327707164a
children d1768332cee0
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.3"
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 }