wok-next view pingus/receipt @ rev 20916

libopenraw, abiword: update deps; boost: pack unpacked libs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 05:42:25 2018 +0300 (2018-08-21)
parents a3c581bf52b8
children d5aab818505e
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="https://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 boost-dev \
18 boost-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 boost-signals gcc-lib-base"
47 }