wok view pingus/receipt @ rev 15213
Add nbd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 13 12:21:17 2013 +0000 (2013-09-13) |
parents | e058951422af |
children | 6135577f4d08 |
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"
11 LICENSE="GPL2"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://pingus.seul.org/"
15 WGET_URL="http://pingus.seul.org/files/$TARBALL"
17 DEPENDS="libsdl libsdl-image libsdl-mixer
18 libboost-signals gcc-lib-base"
20 BUILD_DEPENDS="scons
21 libsdl-dev libsdl-image-dev libsdl-mixer-dev
22 libboost-dev libboost-signals-dev "
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 scons
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin $fs/usr/share/pingus
35 cp -a $src/pingus $fs/usr/bin
36 cp -a $src/data $fs/usr/share/pingus
38 # the tarball doesn't contain any .desktop file, nor a pixmap
39 # let's create them
40 mkdir -p $fs/usr/share/pixmaps
41 mkdir -p $fs/usr/share/applications
42 cp -a $src/data/images/core/editor/actions.png \
43 $fs/usr/share/pixmaps/pingus.png
44 cat > $fs/usr/share/applications/pingus.desktop <<EOF
45 [Desktop Entry]
46 Name=Pingus
47 Exec=pingus -w
48 Type=Application
49 Categories=Application;Game;
50 Icon=pingus
51 EOF
52 }