wok rev 24074

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 09:18:48 2021 +0000 (2021-07-08)
parents ad300ac54f56
children 80d30b02c821
files adeskbar/receipt cairo-compmgr-core/receipt cdrkit/receipt gtk+/receipt gtkmm/receipt hatari/receipt isapnptools/receipt lcms/receipt libatasmart/receipt libcanberra/receipt libffi/receipt libxml2/receipt libxslt/receipt linld/stuff/src/_BEG.ASM lxsession046/receipt plop/receipt slitaz-polar-cursors/receipt slitaz-tango-icon/receipt sqlite/receipt wikiss/receipt xorg-bdftopcf/receipt xorg-xdriinfo/receipt
line diff
     1.1 --- a/adeskbar/receipt	Thu Jul 08 06:56:08 2021 +0000
     1.2 +++ b/adeskbar/receipt	Thu Jul 08 09:18:48 2021 +0000
     1.3 @@ -13,6 +13,12 @@
     1.4  DEPENDS="python pygtk pycairo gnome-menus python-xdg"
     1.5  SUGGESTED="python-xlib dbus-python python-pyalsaaudio"
     1.6  
     1.7 +current_version()
     1.8 +{
     1.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    1.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.11 +}
    1.12 +
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
     2.1 --- a/cairo-compmgr-core/receipt	Thu Jul 08 06:56:08 2021 +0000
     2.2 +++ b/cairo-compmgr-core/receipt	Thu Jul 08 09:18:48 2021 +0000
     2.3 @@ -16,6 +16,12 @@
     2.4  xorg-libXi-dev xorg-libSM-dev cairo-dev pixman-dev gtk+-dev vala \
     2.5  xorg-libICE-dev xorg-libX11-dev util-linux-uuid-dev"
     2.6  
     2.7 +current_version()
     2.8 +{
     2.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    2.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    2.11 +}
    2.12 +
    2.13  # Rules to configure and make the package.
    2.14  compile_rules()
    2.15  {
     3.1 --- a/cdrkit/receipt	Thu Jul 08 06:56:08 2021 +0000
     3.2 +++ b/cdrkit/receipt	Thu Jul 08 09:18:48 2021 +0000
     3.3 @@ -7,13 +7,18 @@
     3.4  MAINTAINER="pankso@slitaz.org"
     3.5  LICENSE="GPL2"
     3.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     3.7 -WEB_SITE="http://www.cdrkit.org/"
     3.8 +WEB_SITE="https://web.archive.org/web/20140714024716/http://www.cdrkit.org/"
     3.9  WGET_URL="http://cdrkit.org/releases/$TARBALL"
    3.10  EXTRA_SOURCE_FILES="cdrkit-1.1.9-efi-boot.patch"
    3.11 -
    3.12  DEPENDS="libcap zlib bzlib attr"
    3.13  BUILD_DEPENDS="cmake libcap-dev zlib-dev bzip2-dev attr-dev"
    3.14  
    3.15 +current_version()
    3.16 +{
    3.17 +	wget -O - $WEB_SITE 2>/dev/null | \
    3.18 +	sed '/released/!d;s|Cdrkit ||;s| has.*||;q'
    3.19 +}
    3.20 +
    3.21  # Rules to configure and make the package.
    3.22  compile_rules()
    3.23  {
     4.1 --- a/gtk+/receipt	Thu Jul 08 06:56:08 2021 +0000
     4.2 +++ b/gtk+/receipt	Thu Jul 08 09:18:48 2021 +0000
     4.3 @@ -26,6 +26,12 @@
     4.4  
     4.5  HOST_ARCH="i486 arm"
     4.6  
     4.7 +current_version()
     4.8 +{
     4.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    4.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    4.11 +}
    4.12 +
    4.13  # Handle cross compilation.
    4.14  case "$ARCH" in
    4.15  	i?86)
     5.1 --- a/gtkmm/receipt	Thu Jul 08 06:56:08 2021 +0000
     5.2 +++ b/gtkmm/receipt	Thu Jul 08 09:18:48 2021 +0000
     5.3 @@ -16,6 +16,12 @@
     5.4  BUILD_DEPENDS="atkmm-dev cairomm-dev doxygen glibmm-dev gtk+-dev libgiomm-dev \
     5.5  	libsigc++-dev  mm-common pangomm-dev"
     5.6  
     5.7 +current_version()
     5.8 +{
     5.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    5.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    5.11 +}
    5.12 +
    5.13  # Rules to configure and make the package.
    5.14  compile_rules()
    5.15  {
     6.1 --- a/hatari/receipt	Thu Jul 08 06:56:08 2021 +0000
     6.2 +++ b/hatari/receipt	Thu Jul 08 09:18:48 2021 +0000
     6.3 @@ -15,6 +15,12 @@
     6.4  BUILD_DEPENDS="cmake libpng-dev libsdl2-dev portaudio-dev 
     6.5  	python-dev readline-dev udev-dev xorg-dev zlib-dev"
     6.6  
     6.7 +current_version()
     6.8 +{
     6.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    6.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    6.11 +}
    6.12 +
    6.13  # Rules to configure and make the package.
    6.14  compile_rules()
    6.15  {
     7.1 --- a/isapnptools/receipt	Thu Jul 08 06:56:08 2021 +0000
     7.2 +++ b/isapnptools/receipt	Thu Jul 08 09:18:48 2021 +0000
     7.3 @@ -8,7 +8,13 @@
     7.4  LICENSE="GPL2"
     7.5  TARBALL="$PACKAGE-$VERSION.tgz"
     7.6  WEB_SITE="https://web.archive.org/web/20140210040320/http://www.roestock.demon.co.uk/isapnptools/"
     7.7 -WGET_URL="ftp://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
     7.8 +WGET_URL="http://metalab.unc.edu/pub/Linux/system/hardware/$TARBALL"
     7.9 +
    7.10 +current_version()
    7.11 +{
    7.12 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    7.13 +	sed "/$PACKAGE-/!d;/lsm/!d;s|.*$PACKAGE-\\(.*\\).lsm.*\".*|\\1|;q"
    7.14 +}
    7.15  
    7.16  # Rules to configure and make the package.
    7.17  compile_rules()
     8.1 --- a/lcms/receipt	Thu Jul 08 06:56:08 2021 +0000
     8.2 +++ b/lcms/receipt	Thu Jul 08 09:18:48 2021 +0000
     8.3 @@ -14,6 +14,13 @@
     8.4  RELATED="lcms-dev lcms-apps"
     8.5  BUILD_DEPENDS="tiff-dev jpeg-dev zlib-dev"
     8.6  
     8.7 +current_version()
     8.8 +{
     8.9 +	wget -O - https://sourceforge.net/projects/lcms/files/lcms/ 2>/dev/null | \
    8.10 +	sed '/scope="row/!d;/lcms.1/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    8.11 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
    8.12 +}
    8.13 +
    8.14  # Rules to configure and make the package.
    8.15  compile_rules()
    8.16  {
     9.1 --- a/libatasmart/receipt	Thu Jul 08 06:56:08 2021 +0000
     9.2 +++ b/libatasmart/receipt	Thu Jul 08 09:18:48 2021 +0000
     9.3 @@ -14,6 +14,12 @@
     9.4  DEPENDS="udev"
     9.5  BUILD_DEPENDS="udev-dev"
     9.6  
     9.7 +current_version()
     9.8 +{
     9.9 +	wget -O - http://git.0pointer.net/$PACKAGE.git/ 2>/dev/null | \
    9.10 +	sed '/tag.?h=v/!d;s|.*tag.?h=v||;s|.>.*||;q'
    9.11 +}
    9.12 +
    9.13  # Rules to configure and make the package.
    9.14  compile_rules()
    9.15  {
    10.1 --- a/libcanberra/receipt	Thu Jul 08 06:56:08 2021 +0000
    10.2 +++ b/libcanberra/receipt	Thu Jul 08 09:18:48 2021 +0000
    10.3 @@ -14,6 +14,12 @@
    10.4  BUILD_DEPENDS="libvorbis-dev libogg-dev gstreamer-dev alsa-lib-dev \
    10.5  libtool gtk+-dev"
    10.6  
    10.7 +current_version()
    10.8 +{
    10.9 +	wget -O - http://git.0pointer.net/$PACKAGE.git/ 2>/dev/null | \
   10.10 +	sed '/tag.?h=v/!d;s|.*tag.?h=v||;s|.>.*||;q'
   10.11 +}
   10.12 +
   10.13  # Rules to configure and make the package.
   10.14  compile_rules()
   10.15  {
    11.1 --- a/libffi/receipt	Thu Jul 08 06:56:08 2021 +0000
    11.2 +++ b/libffi/receipt	Thu Jul 08 09:18:48 2021 +0000
    11.3 @@ -15,6 +15,12 @@
    11.4  
    11.5  HOST_ARCH="i486 arm"
    11.6  
    11.7 +current_version()
    11.8 +{
    11.9 +	wget -O - $WEB_SITE 2>/dev/null | \
   11.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
   11.11 +}
   11.12 +
   11.13  # Rules to configure and make the package.
   11.14  compile_rules()
   11.15  {
    12.1 --- a/libxml2/receipt	Thu Jul 08 06:56:08 2021 +0000
    12.2 +++ b/libxml2/receipt	Thu Jul 08 09:18:48 2021 +0000
    12.3 @@ -25,6 +25,12 @@
    12.4  		ARCH_ARGS="--without-lzma" ;;
    12.5  esac
    12.6  
    12.7 +current_version()
    12.8 +{
    12.9 +	wget -O - $WEB_SITE/news.html 2>/dev/null | \
   12.10 +	sed '/<h3>v/!d;s|.*<h3>v||;s|:.*||;q'
   12.11 +}
   12.12 +
   12.13  # Rules to configure and make the package.
   12.14  #
   12.15  # Note: libxml2 can be build using option --with-minimum
    13.1 --- a/libxslt/receipt	Thu Jul 08 06:56:08 2021 +0000
    13.2 +++ b/libxslt/receipt	Thu Jul 08 09:18:48 2021 +0000
    13.3 @@ -22,6 +22,12 @@
    13.4  	arm) BUILD_DEPENDS="libgcrypt-dev libgpg-error-dev libxml2-dev" ;;
    13.5  esac
    13.6  
    13.7 +current_version()
    13.8 +{
    13.9 +	wget -O - $WEB_SITE/news.html 2>/dev/null | \
   13.10 +	sed '/<h3>v/!d;s|.*<h3>v||;s|:.*||;q'
   13.11 +}
   13.12 +
   13.13  # Rules to configure and make the package.
   13.14  compile_rules()
   13.15  {
    14.1 --- a/linld/stuff/src/_BEG.ASM	Thu Jul 08 06:56:08 2021 +0000
    14.2 +++ b/linld/stuff/src/_BEG.ASM	Thu Jul 08 09:18:48 2021 +0000
    14.3 @@ -167,11 +167,11 @@
    14.4                  p386
    14.5  		ifdef	VCPI
    14.6                  mov     edx,cs
    14.7 -                shl     edx,4		; edx for prepare_vcpi
    14.8 +                shl     edx,4		; edx for prepare_vcpi (edx[31-20]=0)
    14.9  		else
   14.10   		 ifndef	LARGE_ZIMAGE
   14.11                  mov     edx,cs
   14.12 -                shl     edx,4		; edx for memcpy32
   14.13 +                shl     edx,4		; edx for memcpy32 (edx[31-20]=0)
   14.14  		 endif
   14.15  		endif
   14.16  		ifndef	LARGE_ZIMAGE
   14.17 @@ -180,15 +180,15 @@
   14.18  		endif
   14.19  
   14.20  ; Check for vm
   14.21 -                smsw    ax      ;SMSW cannot be trapped! :-)
   14.22 -                and     al,1	;MSW_PE
   14.23 +                smsw    bx      ;SMSW cannot be trapped! :-)
   14.24 +                shr	bx,1	;MSW_PE
   14.25  ; We're in vm
   14.26 -		jnz	check_vcpi
   14.27 +		jnc	check_vcpi
   14.28  
   14.29  check_rm_paging:
   14.30  ; It's a 386 in real mode, chk for paging (crazy but possible)
   14.31 -                mov     eax,cr0
   14.32 -                inc     eax             ;CR0_PG to S
   14.33 +                mov     ebx,cr0
   14.34 +                inc     ebx             ;CR0_PG to S
   14.35  		jns	endcpu386
   14.36  		ifndef	NO386
   14.37                  p8086
   14.38 @@ -253,6 +253,11 @@
   14.39  		pop	dx
   14.40  		xor	al,dl		; clear C
   14.41  		ifdef	CPUTYPE
   14.42 +		 ifndef	VCPI
   14.43 + 		  ifdef	LARGE_ZIMAGE
   14.44 +		cdq			; 386 and 486 are not 64 bits
   14.45 +		  endif
   14.46 +		 endif
   14.47  		cmp	al,20h
   14.48  		mov	ax,0400h
   14.49  		je	is486
    15.1 --- a/lxsession046/receipt	Thu Jul 08 06:56:08 2021 +0000
    15.2 +++ b/lxsession046/receipt	Thu Jul 08 09:18:48 2021 +0000
    15.3 @@ -16,6 +16,13 @@
    15.4  DEPENDS="gtk+ dbus"
    15.5  BUILD_DEPENDS="gtk+-dev dbus-dev intltool"
    15.6  
    15.7 +current_version()
    15.8 +{
    15.9 +	wget -O - https://sourceforge.net/projects/lxde/files/LXSession%20%28session%20manager%29/ 2>/dev/null | \
   15.10 +	sed '/scope="row/!d;/0.4.6/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   15.11 +	sed "/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
   15.12 +}
   15.13 +
   15.14  # Rules to configure and make the package.
   15.15  compile_rules()
   15.16  {
    16.1 --- a/plop/receipt	Thu Jul 08 06:56:08 2021 +0000
    16.2 +++ b/plop/receipt	Thu Jul 08 09:18:48 2021 +0000
    16.3 @@ -12,6 +12,12 @@
    16.4  
    16.5  BUILD_DEPENDS="xz"
    16.6  
    16.7 +current_version()
    16.8 +{
    16.9 +	wget -O - $WEB_SITE 2>/dev/null | \
   16.10 +	sed '/td align=center/!d;s|.*center>||;s|</.*||;q'
   16.11 +}
   16.12 +
   16.13  tune_lzma()
   16.14  {
   16.15  	cp $stuff/*.S $stuff/pack .
    17.1 --- a/slitaz-polar-cursors/receipt	Thu Jul 08 06:56:08 2021 +0000
    17.2 +++ b/slitaz-polar-cursors/receipt	Thu Jul 08 09:18:48 2021 +0000
    17.3 @@ -8,11 +8,17 @@
    17.4  LICENSE="GPL3"
    17.5  TARBALL=$PACKAGE-$VERSION.tar.gz
    17.6  WEB_SITE="http://www.slitaz.org/"
    17.7 -WGET_URL="ftp://download.tuxfamily.org/slitaz/sources/artwok/$TARBALL"
    17.8 +WGET_URL="http://download.tuxfamily.org/slitaz/sources/artwok/$TARBALL"
    17.9  HOST_ARCH="i486 arm"
   17.10  
   17.11  BUILD_DEPENDS="xorg-xcursorgen"
   17.12  
   17.13 +current_version()
   17.14 +{
   17.15 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
   17.16 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
   17.17 +}
   17.18 +
   17.19  # Rules to configure and make the package.
   17.20  compile_rules()
   17.21  {
    18.1 --- a/slitaz-tango-icon/receipt	Thu Jul 08 06:56:08 2021 +0000
    18.2 +++ b/slitaz-tango-icon/receipt	Thu Jul 08 09:18:48 2021 +0000
    18.3 @@ -10,6 +10,12 @@
    18.4  WEB_SITE="http://tango-project.org/"
    18.5  WGET_URL="http://download.tuxfamily.org/slitaz/sources/artwok/$TARBALL"
    18.6  
    18.7 +current_version()
    18.8 +{
    18.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
   18.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
   18.11 +}
   18.12 +
   18.13  # Rules to gen a SliTaz package suitable for Tazpkg.
   18.14  genpkg_rules()
   18.15  {
    19.1 --- a/sqlite/receipt	Thu Jul 08 06:56:08 2021 +0000
    19.2 +++ b/sqlite/receipt	Thu Jul 08 09:18:48 2021 +0000
    19.3 @@ -19,6 +19,12 @@
    19.4  
    19.5  HOST_ARCH="i486 arm"
    19.6  
    19.7 +current_version()
    19.8 +{
    19.9 +	wget -O - $WGET_URL 2>/dev/null | \
   19.10 +	sed '/Version [0-9]/!d;s|.*Version \(.*\)<.*|\1|' | sed q
   19.11 +}
   19.12 +
   19.13  # Rules to configure and make the package.
   19.14  compile_rules()
   19.15  {
    20.1 --- a/wikiss/receipt	Thu Jul 08 06:56:08 2021 +0000
    20.2 +++ b/wikiss/receipt	Thu Jul 08 09:18:48 2021 +0000
    20.3 @@ -14,6 +14,12 @@
    20.4  
    20.5  DEPENDS="lighttpd php"
    20.6  
    20.7 +current_version()
    20.8 +{
    20.9 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
   20.10 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
   20.11 +}
   20.12 +
   20.13  # Rules to configure and make the package.
   20.14  compile_rules()
   20.15  {
    21.1 --- a/xorg-bdftopcf/receipt	Thu Jul 08 06:56:08 2021 +0000
    21.2 +++ b/xorg-bdftopcf/receipt	Thu Jul 08 09:18:48 2021 +0000
    21.3 @@ -11,7 +11,7 @@
    21.4  
    21.5  SOURCE="bdftopcf"
    21.6  TARBALL="$SOURCE-$VERSION.tar.bz2"
    21.7 -WGET_URL="$WEB_SITE/releases/individual/app/$TARBALL"
    21.8 +WGET_URL="$XORG_MIRROR/app/$TARBALL"
    21.9  
   21.10  current_version()
   21.11  {
    22.1 --- a/xorg-xdriinfo/receipt	Thu Jul 08 06:56:08 2021 +0000
    22.2 +++ b/xorg-xdriinfo/receipt	Thu Jul 08 09:18:48 2021 +0000
    22.3 @@ -10,7 +10,7 @@
    22.4  WEB_SITE="https://www.x.org/wiki/"
    22.5  
    22.6  TARBALL="$SOURCE-$VERSION.tar.bz2"
    22.7 -WGET_URL="http://xorg.mirror.solnet.ch/pub/individual/app/$TARBALL"
    22.8 +WGET_URL="$XORG_MIRROR/app/$TARBALL"
    22.9  
   22.10  SUGGESTED="nvidia"
   22.11  DEPENDS="mesa xorg-libX11"