wok-next diff airstrike/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 11b5e93cb5f2
children d5aab818505e
line diff
     1.1 --- a/airstrike/receipt	Tue Jul 05 15:34:01 2016 +0300
     1.2 +++ b/airstrike/receipt	Tue Oct 16 16:46:05 2018 +0300
     1.3 @@ -1,34 +1,31 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="airstrike"
     1.8  VERSION="pre6a"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="Juego batalla aerea."
    1.11 +SHORT_DESC="Incredibly addictive 2D dogfight game"
    1.12  MAINTAINER="arca2@hotmail.com"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="http://icculus.org/airstrike/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    1.17  WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL"
    1.18  
    1.19 -DEPENDS="libsdl-image libsdl"
    1.20  BUILD_DEPENDS="libsdl-image-dev libsdl-dev"
    1.21  
    1.22  # Packaging for SliTaz by Rene Rivero.
    1.23  
    1.24 -# Rules to configure and make the package.
    1.25 -compile_rules()
    1.26 -{
    1.27 +compile_rules() {
    1.28  	sed -i 's/-lSDL_image/& -lm/' src/Makefile
    1.29  	sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
    1.30  	sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
    1.31 -	make
    1.32 +
    1.33 +	make || return 1
    1.34  
    1.35  	cook_pick_manpages $src/doc/airstrike.6
    1.36  }
    1.37  
    1.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 -genpkg_rules()
    1.40 -{
    1.41 +genpkg_rules() {
    1.42  	mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
    1.43  	cp $src/airstrike $fs/usr/bin
    1.44  	cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
    1.45 @@ -36,4 +33,5 @@
    1.46  	mkdir -p $fs/usr/share/applications
    1.47  	cp $stuff/airstrike.desktop $fs/usr/share/applications
    1.48  	chown -R root.root $fs
    1.49 +	DEPENDS="libsdl-image libsdl"
    1.50  }