wok-current annotate airstrike/receipt @ rev 25068

updated alsa-tools packages (1.1.5 -> 1.2.5)
author Hans-G?nter Theisgen
date Fri Jun 10 13:52:51 2022 +0100 (2022-06-10)
parents 9af0e03b8ad0
children
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"
al@19275 9 WEB_SITE="http://icculus.org/airstrike/"
pascal@13226 10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pascal@25021 11 WGET_URL="http://icculus.org/$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@24373 18 # What is the latest version available today?
pascal@24373 19 current_version()
pascal@24373 20 {
pascal@24373 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24373 22 sed '/Linux/!d;s|.*airstrike-||;s|-src.*||'
pascal@24373 23 }
pascal@24373 24
pascal@13226 25 # Rules to configure and make the package.
pascal@13226 26 compile_rules()
pascal@13226 27 {
pascal@13226 28 sed -i 's/-lSDL_image/& -lm/' src/Makefile
pascal@13226 29 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
pascal@13226 30 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
pascal@13226 31 make
al@19264 32
al@19275 33 cook_pick_manpages $src/doc/airstrike.6
pascal@13226 34 }
pascal@13226 35
pascal@13226 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13226 37 genpkg_rules()
pascal@13226 38 {
pascal@13226 39 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
pascal@13226 40 cp $src/airstrike $fs/usr/bin
pascal@13226 41 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
pascal@13226 42 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
pascal@13226 43 mkdir -p $fs/usr/share/applications
pascal@13226 44 cp $stuff/airstrike.desktop $fs/usr/share/applications
pascal@13226 45 chown -R root.root $fs
pascal@13226 46 }