wok-6.x diff airstrike/receipt @ rev 13291
Up sslh (1.13)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 27 15:45:50 2012 +0200 (2012-08-27) |
parents | |
children | 380ffe05937a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/airstrike/receipt Mon Aug 27 15:45:50 2012 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="airstrike" 1.7 +VERSION="pre6a" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Juego batalla aerea." 1.10 +MAINTAINER="arca2@hotmail.com" 1.11 +TARBALL="$PACKAGE-$VERSION-src.tar.gz" 1.12 +WEB_SITE="http://icculus.org/airstrike/" 1.13 +WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL" 1.14 + 1.15 +DEPENDS="libsdl-image libsdl" 1.16 +BUILD_DEPENDS="libsdl-image-dev libsdl-dev" 1.17 + 1.18 +# Packaging for SliTaz by Rene Rivero. 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + sed -i 's/-lSDL_image/& -lm/' src/Makefile 1.25 + sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h 1.26 + sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c 1.27 + make 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications 1.34 + cp $src/airstrike $fs/usr/bin 1.35 + cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike 1.36 + sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc 1.37 + mkdir -p $fs/usr/share/applications 1.38 + cp $stuff/airstrike.desktop $fs/usr/share/applications 1.39 + chown -R root.root $fs 1.40 +}