wok-current annotate airstrike/receipt @ rev 19264

Compress manpages (in $install/usr/share/man/...)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 04 00:54:49 2016 +0300 (2016-07-04)
parents 380ffe05937a
children 11b5e93cb5f2
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 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
al@19264 25
al@19264 26 mkdir -p $install/usr/share/man/man6
al@19264 27 cp -a $src/doc/airstrike.6 $install/usr/share/man/man6
al@19264 28 cook_compress_manpages
pascal@13226 29 }
pascal@13226 30
pascal@13226 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13226 32 genpkg_rules()
pascal@13226 33 {
pascal@13226 34 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
pascal@13226 35 cp $src/airstrike $fs/usr/bin
pascal@13226 36 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
pascal@13226 37 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
pascal@13226 38 mkdir -p $fs/usr/share/applications
pascal@13226 39 cp $stuff/airstrike.desktop $fs/usr/share/applications
pascal@13226 40 chown -R root.root $fs
pascal@13226 41 }