wok-current view airstrike/receipt @ rev 21894
updated scrub (2.4 -> 2.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Oct 03 14:15:41 2019 +0100 (2019-10-03) |
parents | 45507bfb2b0d |
children | 9af0e03b8ad0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="airstrike"
4 VERSION="pre6a"
5 CATEGORY="games"
6 SHORT_DESC="Juego batalla aerea."
7 MAINTAINER="arca2@hotmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://icculus.org/airstrike/"
10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
11 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL"
13 DEPENDS="libsdl-image libsdl"
14 BUILD_DEPENDS="libsdl-image-dev libsdl-dev"
16 # Packaging for SliTaz by Rene Rivero.
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/-lSDL_image/& -lm/' src/Makefile
22 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
23 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
24 make
26 cook_pick_manpages $src/doc/airstrike.6
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
33 cp $src/airstrike $fs/usr/bin
34 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
35 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
36 mkdir -p $fs/usr/share/applications
37 cp $stuff/airstrike.desktop $fs/usr/share/applications
38 chown -R root.root $fs
39 }