wok-next view pingus/receipt @ rev 20764
Up cookutils (1064), gifsicle (1.91), zopfli (1.0.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 00:13:23 2018 +0300 (2018-06-06) |
parents | 9d604775ef23 |
children | a3c581bf52b8 |
line source
1 # SliTaz package receipt v2.
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"
12 WEB_SITE="http://pingus.seul.org/"
14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
15 WGET_URL="http://pingus.seul.org/files/$TARBALL"
17 BUILD_DEPENDS="scons2 libsdl-dev libsdl-image-dev libsdl-mixer-dev libboost-dev \
18 libboost-signals libpng16-dev"
20 compile_rules() {
21 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/screenshot.cpp
22 scons || return 1
24 mkdir -p $install/usr/bin $install/usr/share/pingus
25 cp -a $src/pingus $install/usr/bin
26 cp -a $src/data $install/usr/share/pingus
28 # the tarball doesn't contain any .desktop file, nor a pixmap
29 # let's create them
30 mkdir -p $install/usr/share/pixmaps
31 mkdir -p $install/usr/share/applications
32 cp $src/data/images/core/editor/actions.png \
33 $install/usr/share/pixmaps/pingus.png
34 cat > $install/usr/share/applications/pingus.desktop <<EOF
35 [Desktop Entry]
36 Name=Pingus
37 Exec=pingus -w
38 Type=Application
39 Categories=Application;Game;
40 Icon=pingus
41 EOF
42 }
44 genpkg_rules() {
45 copy @std
46 DEPENDS="libsdl libsdl-image libsdl-mixer libboost-signals gcc-lib-base"
47 }