wok-6.x view airstrike/receipt @ rev 25542
linux-cloop: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 11 09:15:29 2023 +0000 (20 months ago) |
parents | 9af0e03b8ad0 |
children |
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://icculus.org/$PACKAGE/$TARBALL"
13 DEPENDS="libsdl-image libsdl"
14 BUILD_DEPENDS="libsdl-image-dev libsdl-dev"
16 # Packaging for SliTaz by Rene Rivero.
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/Linux/!d;s|.*airstrike-||;s|-src.*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/-lSDL_image/& -lm/' src/Makefile
29 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
30 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
31 make
33 cook_pick_manpages $src/doc/airstrike.6
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
40 cp $src/airstrike $fs/usr/bin
41 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
42 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
43 mkdir -p $fs/usr/share/applications
44 cp $stuff/airstrike.desktop $fs/usr/share/applications
45 chown -R root.root $fs
46 }