wok rev 25580

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 20 07:58:44 2023 +0000 (18 months ago)
parents 7303172dab0d
children d66160614dc4
files alsa-ucm-conf/receipt bin86/receipt broadcom-wl/receipt broadcom-wl64/receipt dev86/receipt e3/receipt elksemu/receipt enet/receipt funionfs/receipt gkII/receipt lesspipe/receipt libmpdclient/receipt linux-cloop/receipt linux64-cloop/receipt nted/receipt orpheus/receipt php-auth-pam/receipt portmap/receipt py3k-pillow/receipt tesseract-ocr-data/receipt transcode/receipt ttf-mgopen/receipt wordgrinder/receipt xcursor-aero/receipt
line diff
     1.1 --- a/alsa-ucm-conf/receipt	Fri May 19 11:17:17 2023 +0000
     1.2 +++ b/alsa-ucm-conf/receipt	Sat May 20 07:58:44 2023 +0000
     1.3 @@ -13,6 +13,13 @@
     1.4  
     1.5  HOST_ARCH="any"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.11 +	sed '/alsa-ucm-conf/!d;s|.*alsa-ucm-conf-||;s|.tar.*||' | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
     2.1 --- a/bin86/receipt	Fri May 19 11:17:17 2023 +0000
     2.2 +++ b/bin86/receipt	Sat May 20 07:58:44 2023 +0000
     2.3 @@ -6,7 +6,7 @@
     2.4  SHORT_DESC="A complete 8086 assembler and loader"
     2.5  MAINTAINER="slaxemulator@gmail.com"
     2.6  LICENSE="GPL2"
     2.7 -WEB_SITE="http://www.debath.co.uk/"
     2.8 +WEB_SITE="https://github.com/lkundrak/dev86/"
     2.9  WANTED="dev86"
    2.10  TAGS="assembler 8086"
    2.11  
     3.1 --- a/broadcom-wl/receipt	Fri May 19 11:17:17 2023 +0000
     3.2 +++ b/broadcom-wl/receipt	Sat May 20 07:58:44 2023 +0000
     3.3 @@ -14,6 +14,13 @@
     3.4  DEPENDS="linux"
     3.5  BUILD_DEPENDS="linux-module-headers xz"
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    3.11 +	sed '/hybrid-portsrc_x86_32-v/!d;s|.*hybrid-portsrc_x86_32-v||;s|.tar.*||;q'
    3.12 +}
    3.13 +
    3.14  # Rules to configure and make the package.
    3.15  compile_rules()
    3.16  {
     4.1 --- a/broadcom-wl64/receipt	Fri May 19 11:17:17 2023 +0000
     4.2 +++ b/broadcom-wl64/receipt	Sat May 20 07:58:44 2023 +0000
     4.3 @@ -17,6 +17,13 @@
     4.4  
     4.5  AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
     4.6  
     4.7 +# What is the latest version available today?
     4.8 +current_version()
     4.9 +{
    4.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    4.11 +	sed '/hybrid-portsrc_x86_32-v/!d;s|.*hybrid-portsrc_x86_32-v||;s|.tar.*||;q'
    4.12 +}
    4.13 +
    4.14  # Rules to configure and make the package.
    4.15  compile_rules()
    4.16  {
     5.1 --- a/dev86/receipt	Fri May 19 11:17:17 2023 +0000
     5.2 +++ b/dev86/receipt	Sat May 20 07:58:44 2023 +0000
     5.3 @@ -7,7 +7,7 @@
     5.4  MAINTAINER="pascal.bellard@slitaz.org"
     5.5  LICENSE="GPL2"
     5.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     5.7 -WEB_SITE="http://www.debath.co.uk/"
     5.8 +WEB_SITE="https://github.com/lkundrak/dev86/"
     5.9  WGET_URL="https://github.com/lkundrak/dev86/archive/v$VERSION.tar.gz"
    5.10  TAGS="compiler C assembler 8086"
    5.11  
     6.1 --- a/e3/receipt	Fri May 19 11:17:17 2023 +0000
     6.2 +++ b/e3/receipt	Sat May 20 07:58:44 2023 +0000
     6.3 @@ -15,6 +15,13 @@
     6.4  DEPENDS=""
     6.5  BUILD_DEPENDS="make nasm"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    6.11 +	sed '/"e3-/!d;s|.*e3-||;s|.t.*||;q'
    6.12 +}
    6.13 +
    6.14  # Rules to configure and make the package.
    6.15  compile_rules()
    6.16  {
     7.1 --- a/elksemu/receipt	Fri May 19 11:17:17 2023 +0000
     7.2 +++ b/elksemu/receipt	Sat May 20 07:58:44 2023 +0000
     7.3 @@ -6,7 +6,7 @@
     7.4  SHORT_DESC="ELKS (linux-8086) binary format support"
     7.5  MAINTAINER="devel@slitaz.org"
     7.6  LICENSE="GPL2"
     7.7 -WEB_SITE="http://www.debath.co.uk/"
     7.8 +WEB_SITE="https://github.com/lkundrak/dev86/"
     7.9  WANTED="dev86"
    7.10  TAGS="virtual 8086 vm86"
    7.11  
     8.1 --- a/enet/receipt	Fri May 19 11:17:17 2023 +0000
     8.2 +++ b/enet/receipt	Sat May 20 07:58:44 2023 +0000
     8.3 @@ -6,7 +6,7 @@
     8.4  SHORT_DESC="A relatively thin, simple and robust network communication layer on top of UDP."
     8.5  MAINTAINER="devl547@gmail.com"
     8.6  LICENSE="MIT"
     8.7 -WEB_SITE="http://enet.bespin.org/"
     8.8 +WEB_SITE="https://github.com/lsalzman/enet/"
     8.9  
    8.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.11  WGET_URL="$WEB_SITE/download/$TARBALL"
     9.1 --- a/funionfs/receipt	Fri May 19 11:17:17 2023 +0000
     9.2 +++ b/funionfs/receipt	Sat May 20 07:58:44 2023 +0000
     9.3 @@ -14,6 +14,13 @@
     9.4  BUILD_DEPENDS="fuse2-dev"
     9.5  DEPENDS="fuse2"
     9.6  
     9.7 +# What is the latest version available today?
     9.8 +current_version()
     9.9 +{
    9.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    9.11 +	sed '/orig/!d;s|.*funionfs_||;s|.orig.*||'
    9.12 +}
    9.13 +
    9.14  # Rules to configure and make the package.
    9.15  compile_rules()
    9.16  {
    10.1 --- a/gkII/receipt	Fri May 19 11:17:17 2023 +0000
    10.2 +++ b/gkII/receipt	Sat May 20 07:58:44 2023 +0000
    10.3 @@ -13,8 +13,14 @@
    10.4  DEPENDS="gtk+"
    10.5  BUILD_DEPENDS="gtk+-dev"
    10.6  
    10.7 +# What is the latest version available today?
    10.8 +current_version()
    10.9 +{
   10.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   10.11 +	sed '/gkII/!d;s|.*gkII-||;s|.tar.*||'
   10.12 +}
   10.13 +
   10.14  # Rules to configure and make the package.
   10.15 -#
   10.16  compile_rules()
   10.17  {
   10.18  	cd $src/src
    11.1 --- a/lesspipe/receipt	Fri May 19 11:17:17 2023 +0000
    11.2 +++ b/lesspipe/receipt	Sat May 20 07:58:44 2023 +0000
    11.3 @@ -17,6 +17,13 @@
    11.4  
    11.5  HOST_ARCH="any"
    11.6  
    11.7 +# What is the latest version available today?
    11.8 +current_version()
    11.9 +{
   11.10 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
   11.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   11.12 +}
   11.13 +
   11.14  # Rules to configure and make the package.
   11.15  compile_rules()
   11.16  {
   11.17 @@ -33,6 +40,7 @@
   11.18  	cook_copy_folders	bin
   11.19  }
   11.20  
   11.21 +# Post install/remove commands for Tazpkg.
   11.22  post_install()
   11.23  {
   11.24  	echo "
    12.1 --- a/libmpdclient/receipt	Fri May 19 11:17:17 2023 +0000
    12.2 +++ b/libmpdclient/receipt	Sat May 20 07:58:44 2023 +0000
    12.3 @@ -6,24 +6,25 @@
    12.4  SHORT_DESC="C & C++ API library for MPD."
    12.5  MAINTAINER="erjo@slitaz.org"
    12.6  LICENSE="BSD"
    12.7 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    12.8 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    12.9  WEB_SITE="http://mpd.wikia.com/wiki/ClientLib:libmpdclient"
   12.10 -WGET_URL="https://www.musicpd.org/download/$PACKAGE/2/$TARBALL"
   12.11 +WGET_URL="https://github.com/MusicPlayerDaemon/libmpdclient/archive/refs/tags/v$VERSION.tar.gz"
   12.12  HOST_ARCH="i486 arm"
   12.13  
   12.14  DEPENDS=""
   12.15 +BUILD_DEPENDS="automake"
   12.16  
   12.17  # What is the latest version available today?
   12.18  current_version()
   12.19  {
   12.20 -	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   12.21 -	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
   12.22 +	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
   12.23 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   12.24  }
   12.25  
   12.26  # Rules to configure and make the package.
   12.27  compile_rules()
   12.28  {
   12.29 -	cd $src
   12.30 +	./autogen.sh
   12.31  	./configure \
   12.32  	--disable-documentation \
   12.33  		$CONFIGURE_ARGS &&
   12.34 @@ -36,4 +37,3 @@
   12.35  	mkdir -p $fs/usr/lib
   12.36  	cp -a $install/usr/lib/*.so* $fs/usr/lib
   12.37  }
   12.38 -
    13.1 --- a/linux-cloop/receipt	Fri May 19 11:17:17 2023 +0000
    13.2 +++ b/linux-cloop/receipt	Sat May 20 07:58:44 2023 +0000
    13.3 @@ -16,8 +16,14 @@
    13.4  BUILD_DEPENDS="linux-module-headers xz"
    13.5  SUGGESTED="cloop-utils"
    13.6  
    13.7 +# What is the latest version available today?
    13.8 +current_version()
    13.9 +{
   13.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   13.11 +	sed '/cloop_.*tar/!d;s|.*cloop_||;s|.tar.*||'
   13.12 +}
   13.13 +
   13.14  # Rules to configure and make the package.
   13.15 -
   13.16  compile_rules()
   13.17  {
   13.18  	patch -p0 < $stuff/cloop.u
   13.19 @@ -37,6 +43,7 @@
   13.20  	done
   13.21  }
   13.22  
   13.23 +# Pre and post install commands for Tazpkg.
   13.24  post_install()
   13.25  {
   13.26  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    14.1 --- a/linux64-cloop/receipt	Fri May 19 11:17:17 2023 +0000
    14.2 +++ b/linux64-cloop/receipt	Sat May 20 07:58:44 2023 +0000
    14.3 @@ -19,8 +19,14 @@
    14.4  
    14.5  AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
    14.6  
    14.7 +# What is the latest version available today?
    14.8 +current_version()
    14.9 +{
   14.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   14.11 +	sed '/cloop_.*tar/!d;s|.*cloop_||;s|.tar.*||'
   14.12 +}
   14.13 +
   14.14  # Rules to configure and make the package.
   14.15 -
   14.16  compile_rules()
   14.17  {
   14.18  	patch -p0 < $stuff/cloop.u
   14.19 @@ -40,6 +46,7 @@
   14.20  	done
   14.21  }
   14.22  
   14.23 +# Pre and post install commands for Tazpkg.
   14.24  post_install()
   14.25  {
   14.26  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
    15.1 --- a/nted/receipt	Fri May 19 11:17:17 2023 +0000
    15.2 +++ b/nted/receipt	Sat May 20 07:58:44 2023 +0000
    15.3 @@ -16,6 +16,13 @@
    15.4  DEPENDS="alsa-lib cairo gettext-base gtk+ harfbuzz"
    15.5  BUILD_DEPENDS="alsa-lib-dev cairo-dev gettext gtk+-dev harfbuzz-dev"
    15.6  
    15.7 +# What is the latest version available today?
    15.8 +current_version()
    15.9 +{
   15.10 +	wget -O - $WEB_SITE 2>/dev/null | \
   15.11 +	sed '/nted-/!d;s|.*nted-||;s|.tar.*||;q'
   15.12 +}
   15.13 +
   15.14  # Rules to configure and make the package.
   15.15  compile_rules()
   15.16  {
    16.1 --- a/orpheus/receipt	Fri May 19 11:17:17 2023 +0000
    16.2 +++ b/orpheus/receipt	Sat May 20 07:58:44 2023 +0000
    16.3 @@ -15,6 +15,13 @@
    16.4  DEPENDS="ncurses libvorbis libogg libxml2 zlib"
    16.5  BUILD_DEPENDS="autoconf automake libvorbis-dev libogg-dev ncurses-dev"
    16.6  
    16.7 +# What is the latest version available today?
    16.8 +current_version()
    16.9 +{
   16.10 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
   16.11 +	sed '/orpheus/!d;s|.*orpheus-||;s|.tar.*||;q'
   16.12 +}
   16.13 +
   16.14  # Rules to configure and make the package.
   16.15  compile_rules()
   16.16  {
    17.1 --- a/php-auth-pam/receipt	Fri May 19 11:17:17 2023 +0000
    17.2 +++ b/php-auth-pam/receipt	Sat May 20 07:58:44 2023 +0000
    17.3 @@ -13,6 +13,13 @@
    17.4  DEPENDS="php-apache pam"
    17.5  BUILD_DEPENDS="php-dev pam pam-dev autoconf automake sed coreutils-conditions"
    17.6  
    17.7 +# What is the latest version available today?
    17.8 +current_version()
    17.9 +{
   17.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   17.11 +	sed '/orig.tar.gz/!d;s|.*pam_||;s|.orig.*||;q'
   17.12 +}
   17.13 +
   17.14  # Rules to configure and make the package.
   17.15  compile_rules()
   17.16  {
   17.17 @@ -38,6 +45,7 @@
   17.18  	cp -a $install/usr/lib/php/extensions/*/*.so $fs/usr/share/php
   17.19  }
   17.20  
   17.21 +# Post install/remove commands for Tazpkg.
   17.22  post_install()
   17.23  {
   17.24  	grep -q ^extension=pam_auth.so "$1/etc/php.ini" || \
    18.1 --- a/portmap/receipt	Fri May 19 11:17:17 2023 +0000
    18.2 +++ b/portmap/receipt	Sat May 20 07:58:44 2023 +0000
    18.3 @@ -13,11 +13,16 @@
    18.4  DEPENDS="libwrap"
    18.5  BUILD_DEPENDS="libwrap-dev"
    18.6  
    18.7 +# What is the latest version available today?
    18.8 +current_version()
    18.9 +{
   18.10 +	wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
   18.11 +	sed '/portmap-/!d;s|.*portmap-||;s|/.*||'
   18.12 +}
   18.13 +
   18.14  # rules to configure and make the package.
   18.15  compile_rules()
   18.16  {
   18.17 -	cd $src
   18.18 -	
   18.19  	# Build 
   18.20  	# Disabling TCP_WRAPPER with NO_TCP_WRAPPER variable
   18.21  	NO_TCP_WRAPPER=1  make
   18.22 @@ -35,7 +40,7 @@
   18.23  	install -g root -o root -m 0755 stuff/init.d/portmap $fs/etc/init.d
   18.24  }
   18.25  
   18.26 -
   18.27 +# Pre and post install commands for Tazpkg.
   18.28  post_install()
   18.29  {
   18.30  	# Post message when installing.
    19.1 --- a/py3k-pillow/receipt	Fri May 19 11:17:17 2023 +0000
    19.2 +++ b/py3k-pillow/receipt	Sat May 20 07:58:44 2023 +0000
    19.3 @@ -15,6 +15,13 @@
    19.4  DEPENDS="freetype jpeg py3k tk zlib"
    19.5  BUILD_DEPENDS="jpeg-dev py3k-dev zlib-dev"
    19.6  
    19.7 +# What is the latest version available today?
    19.8 +current_version()
    19.9 +{
   19.10 +	wget -O - https://github.com/python-pillow/Pillow/releases 2>/dev/null | \
   19.11 +	sed '/Pillow\/tree/!d;s|.*tree/||;s|".*||;q'
   19.12 +}
   19.13 +
   19.14  # Rules to configure and make the package.
   19.15  compile_rules()
   19.16  {
    20.1 --- a/tesseract-ocr-data/receipt	Fri May 19 11:17:17 2023 +0000
    20.2 +++ b/tesseract-ocr-data/receipt	Sat May 20 07:58:44 2023 +0000
    20.3 @@ -10,3 +10,10 @@
    20.4  
    20.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
    20.6  WGET_URL="https://github.com/tesseract-ocr/tessdata/archive/refs/tags/$VERSION.tar.gz"
    20.7 +
    20.8 +# What is the latest version available today?
    20.9 +current_version()
   20.10 +{
   20.11 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
   20.12 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   20.13 +}
    21.1 --- a/transcode/receipt	Fri May 19 11:17:17 2023 +0000
    21.2 +++ b/transcode/receipt	Sat May 20 07:58:44 2023 +0000
    21.3 @@ -15,6 +15,13 @@
    21.4  BUILD_DEPENDS="ffmpeg-dev lame-dev libdvdread-dev jpeg-dev libvorbis-dev \
    21.5  imagemagick-dev alsa-lib-dev xorg-libXv-dev libgnutls"
    21.6  
    21.7 +# What is the latest version available today?
    21.8 +current_version()
    21.9 +{
   21.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   21.11 +	sed '/transcode-/!d;s|.*transcode-||;s|.tar.*||'
   21.12 +}
   21.13 +
   21.14  # Rules to configure and make the package.
   21.15  compile_rules()
   21.16  {
    22.1 --- a/ttf-mgopen/receipt	Fri May 19 11:17:17 2023 +0000
    22.2 +++ b/ttf-mgopen/receipt	Sat May 20 07:58:44 2023 +0000
    22.3 @@ -11,6 +11,13 @@
    22.4  WGET_URL="http://ftp.dei.uc.pt/pub/linux/gentoo/distfiles/79/mgopen-$VERSION.tar.gz"
    22.5  TAGS="font ttf"
    22.6  
    22.7 +# What is the latest version available today?
    22.8 +current_version()
    22.9 +{
   22.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   22.11 +	sed '/mgopen-/!d;s|.*mgopen-||;s|.tar.*||'
   22.12 +}
   22.13 +
   22.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   22.15  genpkg_rules()
   22.16  {
    23.1 --- a/wordgrinder/receipt	Fri May 19 11:17:17 2023 +0000
    23.2 +++ b/wordgrinder/receipt	Sat May 20 07:58:44 2023 +0000
    23.3 @@ -14,6 +14,13 @@
    23.4  DEPENDS="freetype lua ncursesw xorg-libXft"
    23.5  BUILD_DEPENDS="freetype-dev lua-dev ncursesw-dev ninja xorg-libXft-dev"
    23.6  
    23.7 +# What is the latest version available today?
    23.8 +current_version()
    23.9 +{
   23.10 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
   23.11 +	sed '/WordGrinder/!d;s|.*Grinder ||;s|<.*||;q'
   23.12 +}
   23.13 +
   23.14  # Rules to configure and make the package.
   23.15  compile_rules()
   23.16  {
    24.1 --- a/xcursor-aero/receipt	Fri May 19 11:17:17 2023 +0000
    24.2 +++ b/xcursor-aero/receipt	Sat May 20 07:58:44 2023 +0000
    24.3 @@ -1,6 +1,7 @@
    24.4  # SliTaz package receipt.
    24.5  
    24.6  PACKAGE="xcursor-aero"
    24.7 +GITHASH="7234f9883d5d7ba2b79379b90ee99f3b1480a3b4" # 20190710
    24.8  VERSION="0.2"
    24.9  CATEGORY="customization"
   24.10  SHORT_DESC="Aero cursor theme"
   24.11 @@ -8,12 +9,19 @@
   24.12  LICENSE="GPL"
   24.13  WEB_SITE="https://www.gnome-look.org/p/999972/"
   24.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
   24.15 -WGET_URL="https://github.com/Infinality/mouse-cursors/raw/master/aero.tar.gz"
   24.16 +WGET_URL="https://github.com/Infinality/mouse-cursors/raw/$GITHASH/aero.tar.gz"
   24.17  TAGS="cursor-theme"
   24.18  
   24.19  DEPENDS="xorg-libXcursor"
   24.20  BUILD_DEPENDS=""
   24.21  
   24.22 +# What is the latest version available today?
   24.23 +current_version()
   24.24 +{
   24.25 +	wget -O - https://github.com/Infinality/mouse-cursors/commits/master 2>/dev/null | \
   24.26 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
   24.27 +}
   24.28 +
   24.29  # Rules to gen a SliTaz package suitable for Tazpkg.
   24.30  genpkg_rules()
   24.31  {