wok-next view pingus/receipt @ rev 20637

ghostscript: update (b)deps (avoid jpeg / libjpeg-turbo to be in the same package)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 27 16:32:16 2018 +0300 (2018-04-27)
parents dd145c435e4b
children 33df80a31584
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="scons 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 }