# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1630505061 0
# Node ID 95f66fb4280efcf035833bce3f60df78fb7fb91c
# Parent  46dcc80bef412b93aa576d851f77cc75f8b91fa2
Add jpegoptim

diff -r 46dcc80bef41 -r 95f66fb4280e diffpdf/receipt
--- a/diffpdf/receipt	Mon Aug 09 16:49:29 2021 +0000
+++ b/diffpdf/receipt	Wed Sep 01 14:04:21 2021 +0000
@@ -14,6 +14,12 @@
 DEPENDS="poppler-qt4" 
 BUILD_DEPENDS="poppler-qt4-dev qmake Qt4-dev"
 
+current_version()
+{
+	wget -O - https://gitlab.com/eang/diffpdf/-/tags 2>/dev/null | \
+	sed '/diffpdf-v/!d;s|.*/diffpdf-v\([\.0-9]*\)\..*|\1|;q'
+}
+
 # Rules to configure and make the package.
 compile_rules()
 {
diff -r 46dcc80bef41 -r 95f66fb4280e fpc/receipt
--- a/fpc/receipt	Mon Aug 09 16:49:29 2021 +0000
+++ b/fpc/receipt	Wed Sep 01 14:04:21 2021 +0000
@@ -19,6 +19,12 @@
 DEPENDS="ncurses"
 BUILD_DEPENDS="fpc-bootstrap"
 
+current_version()
+{
+	wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \
+	sed '/source-/!d;s|.*/source-\([\.0-9]*\)\..*|\1|;q'
+}
+
 # Handle cross compilation. ARM: fpc-bootstrap build host must be installed
 case "$ARCH" in
 	arm*) BUILD_DEPENDS="" ;;
diff -r 46dcc80bef41 -r 95f66fb4280e jpegoptim/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jpegoptim/receipt	Wed Sep 01 14:04:21 2021 +0000
@@ -0,0 +1,36 @@
+# SliTaz package receipt.
+
+PACKAGE="jpegoptim"
+VERSION="1.4.6"
+CATEGORY="utilities"
+SHORT_DESC="Utility to optimize/compress JPEG files."
+MAINTAINER="pascal.bellard@slitaz.org"
+LICENSE="GPL2"
+TARBALL="$PACKAGE-$VERSION.tar.gz"
+WEB_SITE="https://github.com/tjko/jpegoptim"
+WGET_URL="$WEB_SITE/archive/refs/tags/RELEASE.$VERSION.tar.gz"
+
+BUILD_DEPENDS="jpeg-dev"
+DEPENDS="jpeg-dev"
+
+current_version()
+{
+	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
+	sed '/archive.*tar/!d;s|.*/RELEASE.\(.*\).tar.*|\1|;q'
+}
+
+# Rules to configure and make the package.
+compile_rules()
+{
+	./configure --prefix=/usr --mandir=/usr/share/man \
+		$CONFIGURE_ARGS &&
+	make &&
+	make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr
+	cp -a $install/usr/bin $fs/usr
+}
diff -r 46dcc80bef41 -r 95f66fb4280e linld/stuff/src/JUMP.ASM
--- a/linld/stuff/src/JUMP.ASM	Mon Aug 09 16:49:29 2021 +0000
+++ b/linld/stuff/src/JUMP.ASM	Wed Sep 01 14:04:21 2021 +0000
@@ -106,9 +106,9 @@
 _cmdline	=	_cmdstr+0
 		mov	si,[_cmdline]
 		mov	di,8000h
-		mov	cx,2000h		; 4k for cmdline + 4k up to sp
+		mov	cx,1000h		; 4k for cmdline + 4k up to sp
 		rep
-		  movsb
+		  movsw
 		push	es
 		pop	ss
 		mov	sp,di