wok view airstrike/receipt @ rev 14748
busybox: add musl & dietlibc patchs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 16 15:26:17 2013 +0200 (2013-06-16) |
parents | |
children | 380ffe05937a |
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 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
9 WEB_SITE="http://icculus.org/airstrike/"
10 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL"
12 DEPENDS="libsdl-image libsdl"
13 BUILD_DEPENDS="libsdl-image-dev libsdl-dev"
15 # Packaging for SliTaz by Rene Rivero.
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
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
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
31 cp $src/airstrike $fs/usr/bin
32 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
33 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
34 mkdir -p $fs/usr/share/applications
35 cp $stuff/airstrike.desktop $fs/usr/share/applications
36 chown -R root.root $fs
37 }