wok-next annotate pingus/receipt @ rev 20297

Up spl (0.7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 09 21:37:23 2017 +0100 (2017-11-09)
parents 2f3aba6cc31e
children dd145c435e4b
rev   line source
pascal@1136 1 # SliTaz package receipt.
pascal@1136 2
pascal@1136 3 # FIXME : Check if the tarball comes with a .desktop and a pixmap files
pascal@1136 4 # Then remove the section in genpkg_rules() that creates them
pascal@1136 5
pascal@1136 6 PACKAGE="pingus"
slaxemulator@7515 7 VERSION="0.7.3"
pascal@1136 8 CATEGORY="games"
pascal@1136 9 SHORT_DESC="Pingus is a free Lemmings-like game."
pascal@1136 10 MAINTAINER="chadi.elahmad@gmail.com"
pascal@15000 11 LICENSE="GPL2"
pascal@1136 12
pascal@1136 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1136 14 WEB_SITE="http://pingus.seul.org/"
pascal@1136 15 WGET_URL="http://pingus.seul.org/files/$TARBALL"
pascal@1136 16
al@19765 17 DEPENDS="libsdl libsdl-image libsdl-mixer libboost-signals gcc-lib-base"
pascal@1136 18
al@19765 19 BUILD_DEPENDS="scons libsdl-dev libsdl-image-dev libsdl-mixer-dev libboost-dev \
pascal@20258 20 libboost-signals libpng-dev"
pascal@1136 21
pascal@1136 22 # Rules to configure and make the package.
pascal@1136 23 compile_rules()
pascal@1136 24 {
pascal@20258 25 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/screenshot.cpp
pascal@1136 26 scons
pascal@1136 27 }
pascal@1136 28
pascal@1136 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 30 genpkg_rules()
pascal@1136 31 {
pankso@10839 32 mkdir -p $fs/usr/bin $fs/usr/share/pingus
pankso@10839 33 cp -a $src/pingus $fs/usr/bin
pankso@10839 34 cp -a $src/data $fs/usr/share/pingus
pascal@1136 35
pascal@1136 36 # the tarball doesn't contain any .desktop file, nor a pixmap
pascal@1136 37 # let's create them
pankso@10839 38 mkdir -p $fs/usr/share/pixmaps
pankso@10839 39 mkdir -p $fs/usr/share/applications
pankso@10839 40 cp -a $src/data/images/core/editor/actions.png \
pankso@10839 41 $fs/usr/share/pixmaps/pingus.png
pankso@10839 42 cat > $fs/usr/share/applications/pingus.desktop <<EOF
pascal@1136 43 [Desktop Entry]
pascal@1136 44 Name=Pingus
pascal@1136 45 Exec=pingus -w
pascal@1136 46 Type=Application
pascal@1136 47 Categories=Application;Game;
pascal@1136 48 Icon=pingus
pascal@1136 49 EOF
pascal@1136 50 }