wok-current annotate powermanga/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 7c0170dd3ecc |
children |
rev | line source |
---|---|
pascal@13238 | 1 # SliTaz package receipt. |
pascal@13238 | 2 |
pascal@13238 | 3 PACKAGE="powermanga" |
Hans-G?nter@21700 | 4 VERSION="0.93.1" |
pascal@13238 | 5 CATEGORY="games" |
Hans-G?nter@21700 | 6 SHORT_DESC="Space War." |
pascal@21784 | 7 MAINTAINER="arca1085@gmail.com <Rene Rivero>" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@24746 | 9 WEB_SITE="https://linux.tlk.fr/games/Powermanga/" |
Hans-G?nter@21700 | 10 |
pascal@13238 | 11 TARBALL="$PACKAGE-$VERSION.tgz" |
Hans-G?nter@21700 | 12 WGET_URL="${WEB_SITE}download/$TARBALL" |
pascal@13238 | 13 |
pascal@21784 | 14 DEPENDS="libsdl-mixer zlib libogg" |
pascal@21784 | 15 BUILD_DEPENDS="automake libsdl-dev libsdl-mixer-dev zlib-dev libogg-dev" |
pascal@13238 | 16 |
pascal@24535 | 17 # What is the latest version available today? |
pascal@24535 | 18 current_version() |
pascal@24535 | 19 { |
pascal@24535 | 20 wget -O - https://raw.githubusercontent.com/brunonymous/Powermanga/master/CHANGES 2>/dev/null | \ |
pascal@24535 | 21 sed '/owermanga/!d;s|.*ga ||;q' |
pascal@24535 | 22 } |
pascal@24535 | 23 |
pascal@13238 | 24 # Rules to configure and make the package. |
pascal@13238 | 25 compile_rules() |
pascal@13238 | 26 { |
Hans-G?nter@21700 | 27 sed -i 's|SDL_mixer.h|SDL/SDL_mixer.h|' src/sdl_mixer.c |
Hans-G?nter@21700 | 28 |
Hans-G?nter@21700 | 29 ./bootstrap && |
Hans-G?nter@21700 | 30 ./configure && |
Hans-G?nter@21700 | 31 make && |
Hans-G?nter@21700 | 32 make install |
pascal@13238 | 33 } |
pascal@13238 | 34 |
pascal@13238 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13238 | 36 genpkg_rules() |
pascal@13238 | 37 { |
pascal@13238 | 38 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21700 | 39 |
pascal@21784 | 40 rm $install/usr/share/games/powermanga/sounds/*.zik |
pascal@21784 | 41 cp -a $install/usr/share/games/powermanga/sound/handheld_console/*.ogg $install/usr/share/games/powermanga/sounds/ |
pascal@21784 | 42 mv $install/usr/share/games/powermanga/sounds/music_congratulations.ogg $install/usr/share/games/powermanga/sounds/music_congratulations.zik |
pascal@21784 | 43 mv $install/usr/share/games/powermanga/sounds/music_game.ogg $install/usr/share/games/powermanga/sounds/music_game.zik |
pascal@21784 | 44 mv $install/usr/share/games/powermanga/sounds/music_menu.ogg $install/usr/share/games/powermanga/sounds/music_menu.zik |
Hans-G?nter@21700 | 45 cp -a $install/var $fs |
Hans-G?nter@21700 | 46 cp -a $install/usr/games $fs/usr |
Hans-G?nter@21700 | 47 cp -a $install/usr/share/games $fs/usr/share |
Hans-G?nter@21700 | 48 cp -a $src/texts $fs/usr/share/games/powermanga |
Hans-G?nter@21700 | 49 cp $stuff/power-manga.png $fs/usr/share/games/powermanga |
Hans-G?nter@21700 | 50 cp $stuff/powermanga.desktop $fs/usr/share/applications |
pascal@21784 | 51 mkdir -p $fs/var/games/powermanga |
pascal@21784 | 52 chmod -R 777 $fs/var/games/powermanga |
Hans-G?nter@21700 | 53 |
pascal@13238 | 54 chown -R root.root $fs |
pascal@13238 | 55 } |