# SliTaz package receipt. PACKAGE="airstrike" VERSION="pre6a" CATEGORY="games" SHORT_DESC="Juego batalla aerea." MAINTAINER="arca2@hotmail.com" LICENSE="GPL2" WEB_SITE="http://icculus.org/airstrike/" TARBALL="$PACKAGE-$VERSION-src.tar.gz" WGET_URL="http://icculus.org/$PACKAGE/$TARBALL" DEPENDS="libsdl-image libsdl" BUILD_DEPENDS="libsdl-image-dev libsdl-dev" # Packaging for SliTaz by Rene Rivero. # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/Linux/!d;s|.*airstrike-||;s|-src.*||' } # Rules to configure and make the package. compile_rules() { sed -i 's/-lSDL_image/& -lm/' src/Makefile sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c make cook_pick_manpages $src/doc/airstrike.6 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications cp $src/airstrike $fs/usr/bin cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc mkdir -p $fs/usr/share/applications cp $stuff/airstrike.desktop $fs/usr/share/applications chown -R root.root $fs }