wok-current rev 25507

plop: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 11 10:36:59 2023 +0000 (22 months ago)
parents 4e9ceb6fdd28
children c9972dbaa043
files plop/receipt
line diff
     1.1 --- a/plop/receipt	Thu Feb 09 16:28:01 2023 +0000
     1.2 +++ b/plop/receipt	Sat Feb 11 10:36:59 2023 +0000
     1.3 @@ -34,6 +34,8 @@
     1.4  		shift 2
     1.5  	done
     1.6  	cp plpbt.bin plop
     1.7 +	cp plpbt.bin plop.bin
     1.8 +	dd if=/dev/zero bs=1 count=500 seek=3 conv=notrunc of=plop.bin 2> /dev/null
     1.9  	for c in lzma lz4x2 lzsa1x2 lzsa2x2 ; do
    1.10  		sed "s|uncompress|un${c%x2}|" < $stuff/unpack.S > unpack.S
    1.11  		cp $stuff/pack .
    1.12 @@ -43,14 +45,14 @@
    1.13  		asm unpack
    1.14  		cp unpack.lst unpack.lst.${c%x2}
    1.15  		./pack --build bootloader.bin unpack.bin
    1.16 -		PACKER=${c%x2} ./pack plpbt.bin plop.${c%x2}
    1.17 +		PACKER=${c%x2} ./pack plop.bin plop.${c%x2}
    1.18  		[ $(stat -c %s plop.${c%x2}) -lt $(stat -c %s plop) ] && cp plop.${c%x2} plop
    1.19  		if [ "${c#*x}" = "2" ]; then
    1.20  			cp pack.bak pack
    1.21  			sed -e "s|^#define DOUBLE_PACKED|#define DOUBLE_PACKED	1 // $i|" -i unpack.S
    1.22  			asm unpack
    1.23  			./pack --build bootloader.bin unpack.bin
    1.24 -			PACKER=${c%x2} ./pack plpbt.bin plop.$c
    1.25 +			PACKER=${c%x2} ./pack plop.bin plop.$c
    1.26  			mv unpack.lst unpack.lst.$c
    1.27  		fi
    1.28  	done
    1.29 @@ -69,7 +71,7 @@
    1.30  0299	01	font=bios
    1.31  029A	00	zoomanimation=off
    1.32  EOT
    1.33 -	tune_lzma 84,mf=bt2 LC 0 PB 0
    1.34 +	tune_lzma 76,mf=bt2 LC 0 PB 0
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.