wok rev 25611

Add zx0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 01 18:37:27 2023 +0000 (15 months ago)
parents 1e09c4c56491
children f1ad7cb7989b
files memtest/receipt memtest/stuff/pack memtest64/receipt memtest64/stuff/pack plop/receipt plop/stuff/pack salvador/receipt zx0/receipt zx1/receipt zx2/receipt
line diff
     1.1 --- a/memtest/receipt	Fri Jul 21 17:16:04 2023 +0000
     1.2 +++ b/memtest/receipt	Tue Aug 01 18:37:27 2023 +0000
     1.3 @@ -11,7 +11,7 @@
     1.4  WEB_SITE="https://www.memtest.org/"
     1.5  WGET_URL="https://github.com/memtest86plus/memtest86plus/archive/refs/tags/v$VERSION.tar.gz"
     1.6  
     1.7 -BUILD_DEPENDS="xz lz4 lzsa gcc83"
     1.8 +BUILD_DEPENDS="xz lz4 lzsa salvador gcc83"
     1.9  
    1.10  # What is the latest version available today?
    1.11  current_version()
    1.12 @@ -30,7 +30,7 @@
    1.13  {
    1.14  	file=$1
    1.15  	shift
    1.16 -	for i in lzma lz4x2 lzsa1x2 lzsa2x2 ; do
    1.17 +	for i in lzma lz4x2 lzsa1x2 lzsa2x2 zx0x2 ; do
    1.18  		cp $stuff/*.S $stuff/pack .
    1.19  		sed "s/VERSION/$VERSION/;s|lzma1=|&nice=${1:-64},|" -i pack
    1.20  		while [ -n "$2" ]; do
    1.21 @@ -52,7 +52,7 @@
    1.22  			PACKER=${i%x2} ./pack $file $file.${i%x2}
    1.23  		fi
    1.24  		mv unpack.lst unpack.lst.${i%x2}
    1.25 -		if [ "${i#*x}" = "2" ]; then
    1.26 +		if [ "${i%x2}" != "$i" ]; then
    1.27  			cp pack.bak pack
    1.28  			sed -e "s|^#define DOUBLE_PACKED|#define DOUBLE_PACKED	1 // $i|" -i unpack.S
    1.29  			asm unpack
     2.1 --- a/memtest/stuff/pack	Fri Jul 21 17:16:04 2023 +0000
     2.2 +++ b/memtest/stuff/pack	Tue Aug 01 18:37:27 2023 +0000
     2.3 @@ -64,6 +64,7 @@
     2.4  	lz4) lz4 -l --best | tail -c +5 ;;
     2.5  	lzsa1) cat > /tmp/in$$$1 ; lzsa XXXR -f1 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     2.6  	lzsa2) cat > /tmp/in$$$1 ; lzsa XXXR -f2 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     2.7 +	zx0) cat > /tmp/in$$$1 ; salvador /tmp/in$$$1 /tmp/out$$$1 ; cat /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     2.8  	*) xz -z -e --format=raw --lzma1=lc=$(bits LC),lp=$(bits LP),pb=$(bits PB) --stdout 
     2.9  	esac
    2.10  }
     3.1 --- a/memtest64/receipt	Fri Jul 21 17:16:04 2023 +0000
     3.2 +++ b/memtest64/receipt	Tue Aug 01 18:37:27 2023 +0000
     3.3 @@ -11,6 +11,7 @@
     3.4  WGET_URL="https://memtest.org/download/v$VERSION/mt86plus_${VERSION}.binaries.zip"
     3.5  
     3.6  BUILD_DEPENDS="xz lz4 lzsa"
     3.7 +BUILD_DEPENDS="xz lz4 lzsa salvador"
     3.8  
     3.9  # What is the latest version available today?
    3.10  current_version()
    3.11 @@ -29,7 +30,7 @@
    3.12  {
    3.13  	file=$1
    3.14  	shift
    3.15 -	for i in lzma lz4x2 lzsa1x2 lzsa2x2 ; do
    3.16 +	for i in lzma lz4x2 lzsa1x2 lzsa2x2 zx0x2 ; do
    3.17  		cp $stuff/*.S $stuff/pack .
    3.18  		sed "s/VERSION/$VERSION/;s|lzma1=|&nice=${1:-64},|" -i pack
    3.19  		while [ -n "$2" ]; do
    3.20 @@ -51,7 +52,7 @@
    3.21  			PACKER=${i%x2} ./pack $file $file.${i%x2}
    3.22  		fi
    3.23  		mv unpack.lst unpack.lst.${i%x2}
    3.24 -		if [ "${i#*x}" = "2" ]; then
    3.25 +		if [ "${i%x2}" != "$i" ]; then
    3.26  			cp pack.bak pack
    3.27  			sed -e "s|^#define DOUBLE_PACKED|#define DOUBLE_PACKED	1 // $i|" -i unpack.S
    3.28  			asm unpack
     4.1 --- a/memtest64/stuff/pack	Fri Jul 21 17:16:04 2023 +0000
     4.2 +++ b/memtest64/stuff/pack	Tue Aug 01 18:37:27 2023 +0000
     4.3 @@ -64,6 +64,7 @@
     4.4  	lz4) lz4 -l --best | tail -c +5 ;;
     4.5  	lzsa1) cat > /tmp/in$$$1 ; lzsa XXXR -f1 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     4.6  	lzsa2) cat > /tmp/in$$$1 ; lzsa XXXR -f2 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     4.7 +	zx0) cat > /tmp/in$$$1 ; salvador /tmp/in$$$1 /tmp/out$$$1 ; cat /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     4.8  	*) xz -z -e --format=raw --lzma1=lc=$(bits LC),lp=$(bits LP),pb=$(bits PB) --stdout 
     4.9  	esac
    4.10  }
     5.1 --- a/plop/receipt	Fri Jul 21 17:16:04 2023 +0000
     5.2 +++ b/plop/receipt	Tue Aug 01 18:37:27 2023 +0000
     5.3 @@ -10,7 +10,7 @@
     5.4  TARBALL="plpbt-$VERSION.zip"
     5.5  WGET_URL="https://download.plop.at/files/bootmngr/$TARBALL"
     5.6  
     5.7 -BUILD_DEPENDS="xz lz4 lzsa"
     5.8 +BUILD_DEPENDS="xz lz4 lzsa salvador"
     5.9  
    5.10  # What is the latest version available today?
    5.11  current_version()
    5.12 @@ -36,7 +36,7 @@
    5.13  	cp plpbt.bin plop
    5.14  	cp plpbt.bin plop.bin
    5.15  	dd if=/dev/zero bs=1 count=500 seek=3 conv=notrunc of=plop.bin 2> /dev/null
    5.16 -	for c in lzma lz4x2 lzsa1x2 lzsa2x2 ; do
    5.17 +	for c in lzma lz4x2 lzsa1x2 lzsa2x2 zx0 ; do
    5.18  		sed "s|uncompress|un${c%x2}|" < $stuff/unpack.S > unpack.S
    5.19  		cp $stuff/pack .
    5.20  		sed "s/VERSION/$VERSION/;s|lzma1=|&nice=$nice,|" -i pack
     6.1 --- a/plop/stuff/pack	Fri Jul 21 17:16:04 2023 +0000
     6.2 +++ b/plop/stuff/pack	Tue Aug 01 18:37:27 2023 +0000
     6.3 @@ -64,6 +64,7 @@
     6.4  	lz4) lz4 -l --best | tail -c +5 ;;
     6.5  	lzsa1) cat > /tmp/in$$$1 ; lzsa XXXR -f1 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     6.6  	lzsa2) cat > /tmp/in$$$1 ; lzsa XXXR -f2 /tmp/in$$$1 /tmp/out$$$1 ; tail -c +4 /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     6.7 +	zx0) cat > /tmp/in$$$1 ; salvador /tmp/in$$$1 /tmp/out$$$1 ; cat /tmp/out$$$1 ; rm -f /tmp/in$$$1 /tmp/out$$$1 ;;
     6.8  	*) xz -z -e --format=raw --lzma1=lc=$(bits LC),lp=$(bits LP),pb=$(bits PB) --stdout 
     6.9  	esac
    6.10  }
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/salvador/receipt	Tue Aug 01 18:37:27 2023 +0000
     7.3 @@ -0,0 +1,37 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="salvador"
     7.7 +VERSION="1.4.2"
     7.8 +CATEGORY="system-tools"
     7.9 +SHORT_DESC="A free, open-source compressor for the ZX0 format."
    7.10 +MAINTAINER="pascal.bellard@slitaz.org"
    7.11 +LICENSE="zlib/libpng cc"
    7.12 +WEB_SITE="https://github.com/emmanuel-marty/salvador"
    7.13 +
    7.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.15 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    7.16 +
    7.17 +# What is the latest version available today?
    7.18 +current_version()
    7.19 +{
    7.20 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    7.21 +	sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
    7.22 +}
    7.23 +
    7.24 +# Rules to configure and make the package.
    7.25 +compile_rules()
    7.26 +{
    7.27 +	sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \
    7.28 +		Makefile
    7.29 +	make
    7.30 +}
    7.31 +
    7.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.33 +genpkg_rules()
    7.34 +{
    7.35 +	mkdir -p $fs/usr/bin
    7.36 +	mkdir -p $install/usr/share/doc
    7.37 +
    7.38 +	cp -a $src/salvador	$fs/usr/bin
    7.39 +	cp $src/README*	$install/usr/share/doc
    7.40 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/zx0/receipt	Tue Aug 01 18:37:27 2023 +0000
     8.3 @@ -0,0 +1,39 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="zx0"
     8.7 +GITHASH="ecde3a2ae05061fe06469ed46df81a33b7de7d86"
     8.8 +VERSION="20211217"
     8.9 +CATEGORY="system-tools"
    8.10 +SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
    8.11 +MAINTAINER="pascal.bellard@slitaz.org"
    8.12 +LICENSE="BSD"
    8.13 +WEB_SITE="https://github.com/einar-saukas/ZX0"
    8.14 +
    8.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.16 +WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
    8.17 +
    8.18 +# What is the latest version available today?
    8.19 +current_version()
    8.20 +{
    8.21 +	wget -O - $WEB_SITE/commits/master 2>/dev/null | \
    8.22 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
    8.23 +}
    8.24 +
    8.25 +# Rules to configure and make the package.
    8.26 +compile_rules()
    8.27 +{
    8.28 +	cd src
    8.29 +	gcc -O3 -o ../zx0 zx0.c optimize.c compress.c memory.c
    8.30 +	gcc -O3 -o ../dzx0 dzx0.c
    8.31 +}
    8.32 +
    8.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.34 +genpkg_rules()
    8.35 +{
    8.36 +	mkdir -p $fs/usr/bin
    8.37 +	mkdir -p $install/usr/share/doc
    8.38 +
    8.39 +	cp -a $src/*zx0	$fs/usr/bin
    8.40 +	cp $src/README*	$install/usr/share/doc
    8.41 +	cp $src/LICENS*	$install/usr/share/doc
    8.42 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/zx1/receipt	Tue Aug 01 18:37:27 2023 +0000
     9.3 @@ -0,0 +1,39 @@
     9.4 +# SliTaz package receipt.
     9.5 +
     9.6 +PACKAGE="zx1"
     9.7 +GITHASH="11e31cf91047562bb3cdedab1b34bb02ebdc8f83"
     9.8 +VERSION="20211116"
     9.9 +CATEGORY="system-tools"
    9.10 +SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
    9.11 +MAINTAINER="pascal.bellard@slitaz.org"
    9.12 +LICENSE="BSD"
    9.13 +WEB_SITE="https://github.com/einar-saukas/ZX1"
    9.14 +
    9.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    9.16 +WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
    9.17 +
    9.18 +# What is the latest version available today?
    9.19 +current_version()
    9.20 +{
    9.21 +	wget -O - $WEB_SITE/commits/master 2>/dev/null | \
    9.22 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
    9.23 +}
    9.24 +
    9.25 +# Rules to configure and make the package.
    9.26 +compile_rules()
    9.27 +{
    9.28 +	cd src
    9.29 +	gcc -O3 -o ../zx1 zx1.c optimize.c compress.c memory.c
    9.30 +	gcc -O3 -o ../dzx1 dzx1.c
    9.31 +}
    9.32 +
    9.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    9.34 +genpkg_rules()
    9.35 +{
    9.36 +	mkdir -p $fs/usr/bin
    9.37 +	mkdir -p $install/usr/share/doc
    9.38 +
    9.39 +	cp -a $src/*zx1	$fs/usr/bin
    9.40 +	cp $src/README*	$install/usr/share/doc
    9.41 +	cp $src/LICENS*	$install/usr/share/doc
    9.42 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/zx2/receipt	Tue Aug 01 18:37:27 2023 +0000
    10.3 @@ -0,0 +1,39 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="zx2"
    10.7 +GITHASH="dc963faad50dfebd8b38e6bef4f027ff4754419d"
    10.8 +VERSION="20211116"
    10.9 +CATEGORY="system-tools"
   10.10 +SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
   10.11 +MAINTAINER="pascal.bellard@slitaz.org"
   10.12 +LICENSE="BSD"
   10.13 +WEB_SITE="https://github.com/einar-saukas/ZX2"
   10.14 +
   10.15 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   10.16 +WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
   10.17 +
   10.18 +# What is the latest version available today?
   10.19 +current_version()
   10.20 +{
   10.21 +	wget -O - $WEB_SITE/commits/master 2>/dev/null | \
   10.22 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
   10.23 +}
   10.24 +
   10.25 +# Rules to configure and make the package.
   10.26 +compile_rules()
   10.27 +{
   10.28 +	cd src
   10.29 +	gcc -O3 -o ../zx2 zx2.c optimize.c compress.c memory.c
   10.30 +	gcc -O3 -o ../dzx2 dzx2.c
   10.31 +}
   10.32 +
   10.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.34 +genpkg_rules()
   10.35 +{
   10.36 +	mkdir -p $fs/usr/bin
   10.37 +	mkdir -p $install/usr/share/doc
   10.38 +
   10.39 +	cp -a $src/*zx2	$fs/usr/bin
   10.40 +	cp $src/README*	$install/usr/share/doc
   10.41 +	cp $src/LICENS*	$install/usr/share/doc
   10.42 +}