wok-current annotate airstrike/receipt @ 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 | |
children | 380ffe05937a |
rev | line source |
---|---|
pascal@13226 | 1 # SliTaz package receipt. |
pascal@13226 | 2 |
pascal@13226 | 3 PACKAGE="airstrike" |
pascal@13226 | 4 VERSION="pre6a" |
pascal@13226 | 5 CATEGORY="games" |
pascal@13226 | 6 SHORT_DESC="Juego batalla aerea." |
pascal@13226 | 7 MAINTAINER="arca2@hotmail.com" |
pascal@13226 | 8 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pascal@13226 | 9 WEB_SITE="http://icculus.org/airstrike/" |
pascal@13226 | 10 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL" |
pascal@13226 | 11 |
pascal@13226 | 12 DEPENDS="libsdl-image libsdl" |
pascal@13226 | 13 BUILD_DEPENDS="libsdl-image-dev libsdl-dev" |
pascal@13226 | 14 |
pascal@13226 | 15 # Packaging for SliTaz by Rene Rivero. |
pascal@13226 | 16 |
pascal@13226 | 17 # Rules to configure and make the package. |
pascal@13226 | 18 compile_rules() |
pascal@13226 | 19 { |
pascal@13226 | 20 cd $src |
pascal@13226 | 21 sed -i 's/-lSDL_image/& -lm/' src/Makefile |
pascal@13226 | 22 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h |
pascal@13226 | 23 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c |
pascal@13226 | 24 make |
pascal@13226 | 25 } |
pascal@13226 | 26 |
pascal@13226 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13226 | 28 genpkg_rules() |
pascal@13226 | 29 { |
pascal@13226 | 30 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications |
pascal@13226 | 31 cp $src/airstrike $fs/usr/bin |
pascal@13226 | 32 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike |
pascal@13226 | 33 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc |
pascal@13226 | 34 mkdir -p $fs/usr/share/applications |
pascal@13226 | 35 cp $stuff/airstrike.desktop $fs/usr/share/applications |
pascal@13226 | 36 chown -R root.root $fs |
pascal@13226 | 37 } |