wok annotate powermanga/receipt @ rev 20233

Up Dropbear (2018.76)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 05 12:39:40 2018 +0100 (2018-03-05)
parents 65bb24bf604e
children 125ba2464bdc
rev   line source
pascal@13238 1 # SliTaz package receipt.
pascal@13238 2
pascal@13238 3 PACKAGE="powermanga"
pascal@13238 4 VERSION="0.80"
pascal@13238 5 CATEGORY="games"
pascal@13238 6 SHORT_DESC="Space War"
pascal@13238 7 MAINTAINER="arca2@hotmail.com"
pascal@15002 8 LICENSE="GPL2"
pascal@13238 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@13238 10 WEB_SITE="http://linux.tlk.fr/games/Powermanga/"
pascal@13238 11 WGET_URL="http://linux.tlk.fr/games/Powermanga/download/$TARBALL"
pascal@13238 12
pascal@13238 13 DEPENDS="libsdl-mixer zlib"
pascal@13238 14 BUILD_DEPENDS="libsdl-dev zlib-dev libsdl-mixer-dev"
pascal@13238 15
pascal@13238 16 # Packaging for SliTaz by Rene Rivero.
pascal@13238 17
pascal@13238 18 # Rules to configure and make the package.
pascal@13238 19 compile_rules()
pascal@13238 20 {
pascal@13238 21 cd $src
pascal@13238 22 sed -i 's|SDL_mixer.h|SDL/SDL_mixer.h|' src/sdl_mixer.cpp
pascal@13238 23 sed -i '239,243 s|^|// |' src/sdl_mixer.cpp
pascal@13238 24 ./configure && make && make install
pascal@13238 25 }
pascal@13238 26
pascal@13238 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13238 28 genpkg_rules()
pascal@13238 29 {
pascal@13238 30 mkdir -p $fs/usr/share/applications
pascal@13238 31 cp -a $install/var $fs
pascal@13238 32 cp -a $install/usr/games $fs/usr
pascal@13238 33 cp -a $install/usr/share/games $fs/usr/share
pascal@13238 34 cp -a $src/texts $fs/usr/share/games/powermanga
pascal@13238 35 cp $stuff/power-manga.png $fs/usr/share/games/powermanga
pascal@13238 36 cp $stuff/powermanga.desktop $fs/usr/share/applications
pascal@13238 37 chown -R root.root $fs
pascal@13238 38 }
pascal@13238 39