wok-next view pingus/receipt @ rev 19765

Up icu, libboost...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 12 11:39:09 2017 +0300 (2017-06-12)
parents 380ffe05937a
children 520636188f2e
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 libboost-signals gcc-lib-base"
19 BUILD_DEPENDS="scons libsdl-dev libsdl-image-dev libsdl-mixer-dev libboost-dev \
20 libboost-signals"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 scons
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/usr/share/pingus
33 cp -a $src/pingus $fs/usr/bin
34 cp -a $src/data $fs/usr/share/pingus
36 # the tarball doesn't contain any .desktop file, nor a pixmap
37 # let's create them
38 mkdir -p $fs/usr/share/pixmaps
39 mkdir -p $fs/usr/share/applications
40 cp -a $src/data/images/core/editor/actions.png \
41 $fs/usr/share/pixmaps/pingus.png
42 cat > $fs/usr/share/applications/pingus.desktop <<EOF
43 [Desktop Entry]
44 Name=Pingus
45 Exec=pingus -w
46 Type=Application
47 Categories=Application;Game;
48 Icon=pingus
49 EOF
50 }