wok-next view pingus/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 520636188f2e |
children | 9d604775ef23 |
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 libpng16-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/screenshot.cpp
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 }