wok-next view airstrike/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="airstrike"
4 VERSION="pre6a"
5 CATEGORY="games"
6 SHORT_DESC="Incredibly addictive 2D dogfight game"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://icculus.org/airstrike/"
11 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
12 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="sdl-image-dev sdl-dev"
16 # Packaging for SliTaz by Rene Rivero.
18 compile_rules() {
19 sed -i 's/-lSDL_image/& -lm/' src/Makefile
20 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
21 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
23 make || return 1
25 cook_pick_manpages $src/doc/airstrike.6
26 }
28 genpkg_rules() {
29 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
30 cp $src/airstrike $fs/usr/bin
31 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
32 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
33 mkdir -p $fs/usr/share/applications
34 cp $stuff/airstrike.desktop $fs/usr/share/applications
35 chown -R root.root $fs
36 DEPENDS="sdl-image sdl"
37 }