wok-6.x view airstrike/receipt @ rev 24491
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 22:59:06 2022 +0000 (2022-02-18) |
parents | 11b5e93cb5f2 |
children | 1be16cc1cd50 |
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 # 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 }