wok-next diff pingus/receipt @ rev 20476

Tiny edits: gens-gs, linapple, mupdf, openttd, opentyrian, pingus
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 11 17:47:28 2018 +0200 (2018-03-11)
parents dd145c435e4b
children 33df80a31584
line diff
     1.1 --- a/pingus/receipt	Wed Feb 28 17:32:31 2018 +0200
     1.2 +++ b/pingus/receipt	Sun Mar 11 17:47:28 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  # FIXME : Check if the tarball comes with a .desktop and a pixmap files
     1.8  # Then remove the section in genpkg_rules() that creates them
     1.9 @@ -6,40 +6,32 @@
    1.10  PACKAGE="pingus"
    1.11  VERSION="0.7.3"
    1.12  CATEGORY="games"
    1.13 -SHORT_DESC="Pingus is a free Lemmings-like game."
    1.14 +SHORT_DESC="Pingus is a free Lemmings-like game"
    1.15  MAINTAINER="chadi.elahmad@gmail.com"
    1.16  LICENSE="GPL2"
    1.17 +WEB_SITE="http://pingus.seul.org/"
    1.18  
    1.19  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.20 -WEB_SITE="http://pingus.seul.org/"
    1.21  WGET_URL="http://pingus.seul.org/files/$TARBALL"
    1.22  
    1.23 -DEPENDS="libsdl libsdl-image libsdl-mixer libboost-signals gcc-lib-base"
    1.24 -
    1.25  BUILD_DEPENDS="scons libsdl-dev libsdl-image-dev libsdl-mixer-dev libboost-dev \
    1.26  libboost-signals libpng16-dev"
    1.27  
    1.28 -# Rules to configure and make the package.
    1.29 -compile_rules()
    1.30 -{
    1.31 +compile_rules() {
    1.32  	sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/screenshot.cpp
    1.33 -	scons
    1.34 -}
    1.35 +	scons || return 1
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/usr/bin $fs/usr/share/pingus
    1.41 -	cp -a $src/pingus $fs/usr/bin
    1.42 -	cp -a $src/data $fs/usr/share/pingus
    1.43 +	mkdir -p $install/usr/bin $install/usr/share/pingus
    1.44 +	cp -a $src/pingus $install/usr/bin
    1.45 +	cp -a $src/data   $install/usr/share/pingus
    1.46  
    1.47  	# the tarball doesn't contain any .desktop file, nor a pixmap
    1.48  	# let's create them
    1.49 -	mkdir -p $fs/usr/share/pixmaps
    1.50 -	mkdir -p $fs/usr/share/applications
    1.51 -	cp -a $src/data/images/core/editor/actions.png \
    1.52 -		$fs/usr/share/pixmaps/pingus.png
    1.53 -	cat > $fs/usr/share/applications/pingus.desktop <<EOF
    1.54 +	mkdir -p $install/usr/share/pixmaps
    1.55 +	mkdir -p $install/usr/share/applications
    1.56 +	cp $src/data/images/core/editor/actions.png \
    1.57 +		$install/usr/share/pixmaps/pingus.png
    1.58 +	cat > $install/usr/share/applications/pingus.desktop <<EOF
    1.59  [Desktop Entry]
    1.60  Name=Pingus
    1.61  Exec=pingus -w
    1.62 @@ -48,3 +40,8 @@
    1.63  Icon=pingus
    1.64  EOF
    1.65  }
    1.66 +
    1.67 +genpkg_rules() {
    1.68 +	copy @std
    1.69 +	DEPENDS="libsdl libsdl-image libsdl-mixer libboost-signals gcc-lib-base"
    1.70 +}