wok-next annotate airstrike/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 11b5e93cb5f2 |
children | d5aab818505e |
rev | line source |
---|---|
al@21017 | 1 # SliTaz package receipt v2. |
pascal@13226 | 2 |
pascal@13226 | 3 PACKAGE="airstrike" |
pascal@13226 | 4 VERSION="pre6a" |
pascal@13226 | 5 CATEGORY="games" |
al@21017 | 6 SHORT_DESC="Incredibly addictive 2D dogfight game" |
pascal@13226 | 7 MAINTAINER="arca2@hotmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://icculus.org/airstrike/" |
al@21017 | 10 |
pascal@13226 | 11 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
pascal@13226 | 12 WGET_URL="http://offload1.icculus.org:9090/$PACKAGE/$TARBALL" |
pascal@13226 | 13 |
pascal@13226 | 14 BUILD_DEPENDS="libsdl-image-dev libsdl-dev" |
pascal@13226 | 15 |
pascal@13226 | 16 # Packaging for SliTaz by Rene Rivero. |
pascal@13226 | 17 |
al@21017 | 18 compile_rules() { |
pascal@13226 | 19 sed -i 's/-lSDL_image/& -lm/' src/Makefile |
pascal@13226 | 20 sed -i 's|"airstrikerc"|"/usr/share/airstrike/airstrikerc"|' src/config.h |
pascal@13226 | 21 sed -i 's|"data/|"/usr/share/airstrike/data/|g' src/airstrike.c |
al@21017 | 22 |
al@21017 | 23 make || return 1 |
al@19264 | 24 |
al@19275 | 25 cook_pick_manpages $src/doc/airstrike.6 |
pascal@13226 | 26 } |
pascal@13226 | 27 |
al@21017 | 28 genpkg_rules() { |
pascal@13226 | 29 mkdir -p $fs/usr/bin $fs/usr/share/airstrike $fs/usr/share/applications |
pascal@13226 | 30 cp $src/airstrike $fs/usr/bin |
pascal@13226 | 31 cp -ar $src/data $src/airstrikerc $fs/usr/share/airstrike |
pascal@13226 | 32 sed -i 's|"data\"|"/usr/share/airstrike/data"|' $fs/usr/share/airstrike/airstrikerc |
pascal@13226 | 33 mkdir -p $fs/usr/share/applications |
pascal@13226 | 34 cp $stuff/airstrike.desktop $fs/usr/share/applications |
pascal@13226 | 35 chown -R root.root $fs |
al@21017 | 36 DEPENDS="libsdl-image libsdl" |
pascal@13226 | 37 } |