wok-current rev 13226
Move from undigest: airstrike
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 14 13:38:50 2012 +0200 (2012-08-14) |
parents | 19fbe1c329d0 |
children | 6ce5c4a87753 |
files | airstrike/receipt airstrike/stuff/airstrike.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/airstrike/receipt Tue Aug 14 13:38: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 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/airstrike/stuff/airstrike.desktop Tue Aug 14 13:38:50 2012 +0200 2.3 @@ -0,0 +1,8 @@ 2.4 +[Desktop Entry] 2.5 +Encoding=UTF-8 2.6 +Name=Airstrike 2.7 +Comment=Battle Air 2.8 +Exec=/usr/bin/airstrike 2.9 +Icon=/usr/share/airstrike/data/zeppelin-right.png 2.10 +Type=Application 2.11 +Categories=Application;Game; 2.12 \ No newline at end of file