wok-current view airstrike/receipt @ rev 19030

cups: reset tazpanel menus cache in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 05 14:59:00 2016 +0200 (2016-04-05)
parents fe7c809fbd7a
children 45507bfb2b0d
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 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://icculus.org/airstrike/"
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 cd $src
22 sed -i 's/-lSDL_image/& -lm/' src/Makefile
23 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h
24 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c
25 make
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications
32 cp $src/airstrike $fs/usr/bin
33 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike
34 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc
35 mkdir -p $fs/usr/share/applications
36 cp $stuff/airstrike.desktop $fs/usr/share/applications
37 chown -R root.root $fs
38 }