wok annotate airstrike/receipt @ rev 17698

Up marlin: Add a patch
author Yuri Pourre <yuripourre@gmail.com>
date Thu Feb 26 22:08:46 2015 -0300 (2015-02-26)
parents fe7c809fbd7a
children 45507bfb2b0d
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@15000 8 LICENSE="GPL2"
pascal@13226 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pascal@13226 10 WEB_SITE="http://icculus.org/airstrike/"
pascal@13226 11 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL"
pascal@13226 12
pascal@13226 13 DEPENDS="libsdl-image libsdl"
pascal@13226 14 BUILD_DEPENDS="libsdl-image-dev libsdl-dev"
pascal@13226 15
pascal@13226 16 # Packaging for SliTaz by Rene Rivero.
pascal@13226 17
pascal@13226 18 # Rules to configure and make the package.
pascal@13226 19 compile_rules()
pascal@13226 20 {
pascal@13226 21 cd $src
pascal@13226 22 sed -i 's/-lSDL_image/& -lm/' src/Makefile
pascal@13226 23 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
pascal@13226 24 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
pascal@13226 25 make
pascal@13226 26 }
pascal@13226 27
pascal@13226 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13226 29 genpkg_rules()
pascal@13226 30 {
pascal@13226 31 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
pascal@13226 32 cp $src/airstrike $fs/usr/bin
pascal@13226 33 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
pascal@13226 34 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
pascal@13226 35 mkdir -p $fs/usr/share/applications
pascal@13226 36 cp $stuff/airstrike.desktop $fs/usr/share/applications
pascal@13226 37 chown -R root.root $fs
pascal@13226 38 }