wok rev 24095

Add jpegoptim
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 01 14:04:21 2021 +0000 (2021-09-01)
parents 46dcc80bef41
children 7d0f7ab755d6
files diffpdf/receipt fpc/receipt jpegoptim/receipt linld/stuff/src/JUMP.ASM
line diff
     1.1 --- a/diffpdf/receipt	Mon Aug 09 16:49:29 2021 +0000
     1.2 +++ b/diffpdf/receipt	Wed Sep 01 14:04:21 2021 +0000
     1.3 @@ -14,6 +14,12 @@
     1.4  DEPENDS="poppler-qt4" 
     1.5  BUILD_DEPENDS="poppler-qt4-dev qmake Qt4-dev"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - https://gitlab.com/eang/diffpdf/-/tags 2>/dev/null | \
    1.10 +	sed '/diffpdf-v/!d;s|.*/diffpdf-v\([\.0-9]*\)\..*|\1|;q'
    1.11 +}
    1.12 +
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
     2.1 --- a/fpc/receipt	Mon Aug 09 16:49:29 2021 +0000
     2.2 +++ b/fpc/receipt	Wed Sep 01 14:04:21 2021 +0000
     2.3 @@ -19,6 +19,12 @@
     2.4  DEPENDS="ncurses"
     2.5  BUILD_DEPENDS="fpc-bootstrap"
     2.6  
     2.7 +current_version()
     2.8 +{
     2.9 +	wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \
    2.10 +	sed '/source-/!d;s|.*/source-\([\.0-9]*\)\..*|\1|;q'
    2.11 +}
    2.12 +
    2.13  # Handle cross compilation. ARM: fpc-bootstrap build host must be installed
    2.14  case "$ARCH" in
    2.15  	arm*) BUILD_DEPENDS="" ;;
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/jpegoptim/receipt	Wed Sep 01 14:04:21 2021 +0000
     3.3 @@ -0,0 +1,36 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="jpegoptim"
     3.7 +VERSION="1.4.6"
     3.8 +CATEGORY="utilities"
     3.9 +SHORT_DESC="Utility to optimize/compress JPEG files."
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +LICENSE="GPL2"
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.13 +WEB_SITE="https://github.com/tjko/jpegoptim"
    3.14 +WGET_URL="$WEB_SITE/archive/refs/tags/RELEASE.$VERSION.tar.gz"
    3.15 +
    3.16 +BUILD_DEPENDS="jpeg-dev"
    3.17 +DEPENDS="jpeg-dev"
    3.18 +
    3.19 +current_version()
    3.20 +{
    3.21 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    3.22 +	sed '/archive.*tar/!d;s|.*/RELEASE.\(.*\).tar.*|\1|;q'
    3.23 +}
    3.24 +
    3.25 +# Rules to configure and make the package.
    3.26 +compile_rules()
    3.27 +{
    3.28 +	./configure --prefix=/usr --mandir=/usr/share/man \
    3.29 +		$CONFIGURE_ARGS &&
    3.30 +	make &&
    3.31 +	make DESTDIR=$DESTDIR install
    3.32 +}
    3.33 +
    3.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.35 +genpkg_rules()
    3.36 +{
    3.37 +	mkdir -p $fs/usr
    3.38 +	cp -a $install/usr/bin $fs/usr
    3.39 +}
     4.1 --- a/linld/stuff/src/JUMP.ASM	Mon Aug 09 16:49:29 2021 +0000
     4.2 +++ b/linld/stuff/src/JUMP.ASM	Wed Sep 01 14:04:21 2021 +0000
     4.3 @@ -106,9 +106,9 @@
     4.4  _cmdline	=	_cmdstr+0
     4.5  		mov	si,[_cmdline]
     4.6  		mov	di,8000h
     4.7 -		mov	cx,2000h		; 4k for cmdline + 4k up to sp
     4.8 +		mov	cx,1000h		; 4k for cmdline + 4k up to sp
     4.9  		rep
    4.10 -		  movsb
    4.11 +		  movsw
    4.12  		push	es
    4.13  		pop	ss
    4.14  		mov	sp,di