wok rev 21784

Update powermanga (thanks Rene Rivero)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 21 10:32:10 2019 +0200 (2019-07-21)
parents 89a9d0d5d7e2
children 37b2a1afa30e
files lbzip2/receipt libmowgli-dev/receipt libmowgli/receipt libstroke-dev/receipt libstroke/receipt linld/stuff/src/pipehole.awk powermanga/receipt
line diff
     1.1 --- a/lbzip2/receipt	Wed Jul 17 22:18:59 2019 +0300
     1.2 +++ b/lbzip2/receipt	Sun Jul 21 10:32:10 2019 +0200
     1.3 @@ -7,7 +7,7 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  LICENSE="GPL3"
     1.6  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.7 -WEB_SITE="http://lbzip2.org/"
     1.8 +WEB_SITE="https://github.com/kjn/lbzip2/"
     1.9  WGET_URL="http://archive.lbzip2.org/$TARBALL"
    1.10  
    1.11  # Rules to configure and make the package.
     2.1 --- a/libmowgli-dev/receipt	Wed Jul 17 22:18:59 2019 +0300
     2.2 +++ b/libmowgli-dev/receipt	Sun Jul 21 10:32:10 2019 +0200
     2.3 @@ -6,7 +6,7 @@
     2.4  SHORT_DESC="High performance and highly flexible algorithms - development files."
     2.5  MAINTAINER="mimas@slitaz.org"
     2.6  LICENSE="BSD"
     2.7 -WEB_SITE="http://atheme.org/projects/libmowgli.html"
     2.8 +WEB_SITE="https://github.com/atheme/libmowgli-2"
     2.9  
    2.10  WANTED="libmowgli"
    2.11  DEPENDS="libmowgli pkg-config"
     3.1 --- a/libmowgli/receipt	Wed Jul 17 22:18:59 2019 +0300
     3.2 +++ b/libmowgli/receipt	Sun Jul 21 10:32:10 2019 +0200
     3.3 @@ -6,7 +6,7 @@
     3.4  SHORT_DESC="High performance and highly flexible algorithms."
     3.5  MAINTAINER="mimas@slitaz.org"
     3.6  LICENSE="BSD"
     3.7 -WEB_SITE="http://atheme.org/projects/libmowgli.html"
     3.8 +WEB_SITE="https://github.com/atheme/libmowgli-2"
     3.9  
    3.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.11  WGET_URL="https://github.com/atheme/$PACKAGE-2/archive/v$VERSION.tar.gz"
     4.1 --- a/libstroke-dev/receipt	Wed Jul 17 22:18:59 2019 +0300
     4.2 +++ b/libstroke-dev/receipt	Sun Jul 21 10:32:10 2019 +0200
     4.3 @@ -7,7 +7,7 @@
     4.4  MAINTAINER="pankso@slitaz.org"
     4.5  LICENSE="GPL2"
     4.6  WANTED="libstroke"
     4.7 -WEB_SITE="http://etla.net/libstroke/" 
     4.8 +WEB_SITE="https://web.archive.org/web/20161204100704/http://etla.net/libstroke/"
     4.9  
    4.10  DEPENDS="libstroke"
    4.11  
     5.1 --- a/libstroke/receipt	Wed Jul 17 22:18:59 2019 +0300
     5.2 +++ b/libstroke/receipt	Sun Jul 21 10:32:10 2019 +0200
     5.3 @@ -7,7 +7,7 @@
     5.4  MAINTAINER="pankso@slitaz.org"
     5.5  LICENSE="GPL2"
     5.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     5.7 -WEB_SITE="http://etla.net/libstroke/"
     5.8 +WEB_SITE="https://web.archive.org/web/20161204100704/http://etla.net/libstroke/"
     5.9  WGET_URL="$WEB_SITE/$TARBALL"
    5.10  
    5.11  DEPENDS=""
     6.1 --- a/linld/stuff/src/pipehole.awk	Wed Jul 17 22:18:59 2019 +0300
     6.2 +++ b/linld/stuff/src/pipehole.awk	Sun Jul 21 10:32:10 2019 +0200
     6.3 @@ -6,6 +6,11 @@
     6.4  	if (/^@.*:$/ || /	endp$/) afterjmp=0
     6.5  	if (/dword ptr/) is386=1
     6.6  	sub(/DGROUP:_imgs\+65534/,"[di-2]")
     6.7 +	if (/fallback\)\[1\] == 0/) isload=8
     6.8 +	if (isload == 8) {  # LOAD.LST
     6.9 +		if (/load_image/) isload=0
    6.10 +		else next
    6.11 +	}
    6.12  	if (/cmd_line_ptr =/ && is386 == 0) isload=7
    6.13  	if (isload == 7) {  # LOAD.LST
    6.14  		if (/add/ || /xor/ || /extrn/ || /N_LXLSH@/ || /cl,4/) next
    6.15 @@ -55,7 +60,13 @@
    6.16  		}
    6.17  		if (/dx,dx/) next
    6.18  		sub(/ax,dx/,"ax,bx")
    6.19 -		if (/call/) isload=400
    6.20 +		if (/call/) {
    6.21 +			print	"	cmp	ax,0fffh"
    6.22 +			print	"	jae	@sys@ok"
    6.23 +			print	"	mov	ax,0fffh"
    6.24 +			print	"@sys@ok:"
    6.25 +			isload=400
    6.26 +		}
    6.27  	}
    6.28  	if (isload == 400 && /,0/) {
    6.29  		sub(/,0/,",dh")
    6.30 @@ -64,6 +75,13 @@
    6.31  	if (isload == 4 && is386) {  # LOAD.LST
    6.32  		sub(/dx,cs/,"edx,cs")
    6.33  		sub(/eax/,"edx")
    6.34 +		if (/shl/) {
    6.35 +			print	"	mov	ax,0fffh"
    6.36 +			print	"	cmp	dx,ax"
    6.37 +			print	"	jae	@sys@ok"
    6.38 +			print	"	xchg	ax,dx"
    6.39 +			print	"@sys@ok:"
    6.40 +		}
    6.41  		sub(/ax,9/,"dx,9")
    6.42  		if (/,0$/) sub(/,0/,",dh")
    6.43  		if (/movzx/) next
     7.1 --- a/powermanga/receipt	Wed Jul 17 22:18:59 2019 +0300
     7.2 +++ b/powermanga/receipt	Sun Jul 21 10:32:10 2019 +0200
     7.3 @@ -4,23 +4,20 @@
     7.4  VERSION="0.93.1"
     7.5  CATEGORY="games"
     7.6  SHORT_DESC="Space War."
     7.7 -MAINTAINER="arca2@hotmail.com"
     7.8 +MAINTAINER="arca1085@gmail.com <Rene Rivero>"
     7.9  LICENSE="GPL2"
    7.10  WEB_SITE="http://linux.tlk.fr/games/Powermanga/"
    7.11  
    7.12  TARBALL="$PACKAGE-$VERSION.tgz"
    7.13  WGET_URL="${WEB_SITE}download/$TARBALL"
    7.14  
    7.15 -DEPENDS="libsdl-mixer zlib"
    7.16 -BUILD_DEPENDS="automake libsdl-dev libsdl-mixer-dev zlib-dev"
    7.17 -
    7.18 -# Packaging for SliTaz by Rene Rivero.
    7.19 +DEPENDS="libsdl-mixer zlib libogg"
    7.20 +BUILD_DEPENDS="automake libsdl-dev libsdl-mixer-dev zlib-dev libogg-dev"
    7.21  
    7.22  # Rules to configure and make the package.
    7.23  compile_rules()
    7.24  {
    7.25  	sed -i 's|SDL_mixer.h|SDL/SDL_mixer.h|' src/sdl_mixer.c
    7.26 -#	sed -i '239,243 s|^|// |' src/sdl_mixer.cpp
    7.27  
    7.28  	./bootstrap &&
    7.29  	./configure &&
    7.30 @@ -33,12 +30,19 @@
    7.31  {
    7.32  	mkdir -p $fs/usr/share/applications
    7.33  
    7.34 +	rm $install/usr/share/games/powermanga/sounds/*.zik
    7.35 +	cp -a $install/usr/share/games/powermanga/sound/handheld_console/*.ogg $install/usr/share/games/powermanga/sounds/
    7.36 +	mv $install/usr/share/games/powermanga/sounds/music_congratulations.ogg $install/usr/share/games/powermanga/sounds/music_congratulations.zik
    7.37 +	mv $install/usr/share/games/powermanga/sounds/music_game.ogg $install/usr/share/games/powermanga/sounds/music_game.zik
    7.38 +	mv $install/usr/share/games/powermanga/sounds/music_menu.ogg $install/usr/share/games/powermanga/sounds/music_menu.zik
    7.39  	cp -a $install/var		$fs
    7.40  	cp -a $install/usr/games	$fs/usr
    7.41  	cp -a $install/usr/share/games	$fs/usr/share
    7.42  	cp -a $src/texts		$fs/usr/share/games/powermanga
    7.43  	cp $stuff/power-manga.png	$fs/usr/share/games/powermanga
    7.44  	cp $stuff/powermanga.desktop	$fs/usr/share/applications
    7.45 +	mkdir -p $fs/var/games/powermanga
    7.46 +	chmod -R 777 $fs/var/games/powermanga
    7.47  
    7.48  	chown -R root.root $fs
    7.49  }