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