wok-current rev 24313

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 21 10:59:24 2022 +0000 (2022-01-21)
parents 679126bfd419
children 6a5f19243cc6
files anthy/receipt busybox/receipt codec2/receipt scim-anthy/receipt silc-server/receipt siproxd/receipt smbwebclient/receipt smplayer/receipt stellarium/receipt tcpreplay/receipt tinyxml/receipt udpcast/receipt vde2/receipt wxWidgets28/receipt wxpython/receipt
line diff
     1.1 --- a/anthy/receipt	Thu Jan 20 17:20:42 2022 +0100
     1.2 +++ b/anthy/receipt	Fri Jan 21 10:59:24 2022 +0000
     1.3 @@ -15,6 +15,14 @@
     1.4  
     1.5  CONFIG_FILES="/etc/anthy-conf"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://osdn.net$(wget -O - https://osdn.net/projects/$PACKAGE 2>/dev/null | \
    1.11 +	sed '/Date: /!d;s|.*href="||;s|".*||;q') 2>/dev/null | \
    1.12 +	sed '/Release anthy-/!d;s|.*anthy-.*anthy-||;s| .*||;q'
    1.13 +}
    1.14 +
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {
     2.1 --- a/busybox/receipt	Thu Jan 20 17:20:42 2022 +0100
     2.2 +++ b/busybox/receipt	Fri Jan 21 10:59:24 2022 +0000
     2.3 @@ -24,6 +24,7 @@
     2.4  	arm*) BUILD_DEPENDS="bzip2" ;;
     2.5  esac
     2.6  
     2.7 +# What is the latest version available today?
     2.8  current_version()
     2.9  {
    2.10  	wget -O - $WEB_SITE 2>/dev/null | \
     3.1 --- a/codec2/receipt	Thu Jan 20 17:20:42 2022 +0100
     3.2 +++ b/codec2/receipt	Fri Jan 21 10:59:24 2022 +0000
     3.3 @@ -12,6 +12,7 @@
     3.4  
     3.5  BUILD_DEPENDS="cmake"
     3.6  
     3.7 +# What is the latest version available today?
     3.8  current_version()
     3.9  {
    3.10  	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
     4.1 --- a/scim-anthy/receipt	Thu Jan 20 17:20:42 2022 +0100
     4.2 +++ b/scim-anthy/receipt	Fri Jan 21 10:59:24 2022 +0000
     4.3 @@ -14,6 +14,13 @@
     4.4  DEPENDS="anthy scim"
     4.5  BUILD_DEPENDS="anthy-dev automake gtk+-dev libtool scim-dev"
     4.6  
     4.7 +# What is the latest version available today?
     4.8 +current_version()
     4.9 +{
    4.10 +	wget -O - $WEB_SITE/releases 2>/dev/null | \
    4.11 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    4.12 +}
    4.13 +
    4.14  # Rules to configure and make the package.
    4.15  compile_rules()
    4.16  {
     5.1 --- a/silc-server/receipt	Thu Jan 20 17:20:42 2022 +0100
     5.2 +++ b/silc-server/receipt	Fri Jan 21 10:59:24 2022 +0000
     5.3 @@ -14,6 +14,13 @@
     5.4  
     5.5  CONFIG_FILES="/etc/silcalgs.conf /etc/silcd.conf"
     5.6  
     5.7 +# What is the latest version available today?
     5.8 +current_version()
     5.9 +{
    5.10 +	wget -O - https://sourceforge.net/projects/silc/files/silc/server/sources/ 2>/dev/null | \
    5.11 +	sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q"
    5.12 +}
    5.13 +
    5.14  # Rules to configure and make the package.
    5.15  compile_rules()
    5.16  {
     6.1 --- a/siproxd/receipt	Thu Jan 20 17:20:42 2022 +0100
     6.2 +++ b/siproxd/receipt	Fri Jan 21 10:59:24 2022 +0000
     6.3 @@ -14,6 +14,14 @@
     6.4  DEPENDS="osip"
     6.5  BUILD_DEPENDS="osip-dev libtool"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    6.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    6.12 +	sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q"
    6.13 +}
    6.14 +
    6.15  # Rules to configure and make the package.
    6.16  compile_rules()
    6.17  {
     7.1 --- a/smbwebclient/receipt	Thu Jan 20 17:20:42 2022 +0100
     7.2 +++ b/smbwebclient/receipt	Fri Jan 21 10:59:24 2022 +0000
     7.3 @@ -17,6 +17,14 @@
     7.4  
     7.5  HOST_ARCH="any"
     7.6  
     7.7 +# What is the latest version available today?
     7.8 +current_version()
     7.9 +{
    7.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    7.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    7.12 +	sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.php.*||;s|_|.|g;q"
    7.13 +}
    7.14 +
    7.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.16  genpkg_rules()
    7.17  {
     8.1 --- a/smplayer/receipt	Thu Jan 20 17:20:42 2022 +0100
     8.2 +++ b/smplayer/receipt	Fri Jan 21 10:59:24 2022 +0000
     8.3 @@ -18,6 +18,13 @@
     8.4  
     8.5  GENERIC_MENUS="no"
     8.6  
     8.7 +# What is the latest version available today?
     8.8 +current_version()
     8.9 +{
    8.10 +	wget -O - $WEB_SITE/en/downloads 2>/dev/null | \
    8.11 +	sed '/tar..z/!d;s|.*smplayer-\([0-9]\)|\1|;s|.tar.*||'
    8.12 +}
    8.13 +
    8.14  # Rules to configure and make the package.
    8.15  compile_rules()
    8.16  {
     9.1 --- a/stellarium/receipt	Thu Jan 20 17:20:42 2022 +0100
     9.2 +++ b/stellarium/receipt	Fri Jan 21 10:59:24 2022 +0000
     9.3 @@ -15,6 +15,12 @@
     9.4  BUILD_DEPENDS="gettext perl cmake libboost-dev libboost-thread-dev mesa-dev \
     9.5  qt4 Qt4-dev qmake zlib-dev pkg-config xorg-libX11-dev libdrm"
     9.6  
     9.7 +# What is the latest version available today?
     9.8 +current_version()
     9.9 +{
    9.10 +	wget -O - $WEB_SITE 2>/dev/null | sed '/latest/!d;s|.* is ||;s|<.*||;q'
    9.11 +}
    9.12 +
    9.13  # Rules to configure and make the package.
    9.14  compile_rules()
    9.15  {
    10.1 --- a/tcpreplay/receipt	Thu Jan 20 17:20:42 2022 +0100
    10.2 +++ b/tcpreplay/receipt	Fri Jan 21 10:59:24 2022 +0000
    10.3 @@ -13,6 +13,15 @@
    10.4  DEPENDS="libdnet"
    10.5  BUILD_DEPENDS="libpcap-dev libdnet-dev tcpdump libnl1"
    10.6  
    10.7 +# What is the latest version available today?
    10.8 +current_version()
    10.9 +{
   10.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
   10.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   10.12 +	sed 's| |\n|g' | sed '/^"tcpreplay\//!d;s|^"|https://sourceforge.net/projects/tcpreplay/files/|;s|",||;q' | xargs wget -O - 2>/dev/null | \
   10.13 +	sed '/tcpreplay-/!d;/asc/!d;s|.*tcpreplay-||;s|.[zt].*||;s|_|.|g;q' 
   10.14 +}
   10.15 +
   10.16  # Rules to configure and make the package.
   10.17  compile_rules()
   10.18  {
    11.1 --- a/tinyxml/receipt	Thu Jan 20 17:20:42 2022 +0100
    11.2 +++ b/tinyxml/receipt	Fri Jan 21 10:59:24 2022 +0000
    11.3 @@ -11,6 +11,14 @@
    11.4  WGET_URL="$SF_MIRROR/project/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
    11.5  #HOST_ARCH="i486 arm"
    11.6  
    11.7 +# What is the latest version available today?
    11.8 +current_version()
    11.9 +{
   11.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
   11.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   11.12 +	sed '/tinyxml_/!d;s|.*tinyxml_||;s|.[zt].*||;s|_|.|g;q'
   11.13 +}
   11.14 +
   11.15  # Rules to configure and make the package.
   11.16  compile_rules()
   11.17  {
    12.1 --- a/udpcast/receipt	Thu Jan 20 17:20:42 2022 +0100
    12.2 +++ b/udpcast/receipt	Fri Jan 21 10:59:24 2022 +0000
    12.3 @@ -11,6 +11,13 @@
    12.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
    12.5  WGET_URL="${WEB_SITE}download/$TARBALL"
    12.6  
    12.7 +# What is the latest version available today?
    12.8 +current_version()
    12.9 +{
   12.10 +	wget -O - ${WEB_SITE}downloads.html 2>/dev/null | \
   12.11 +	sed '/tar.gz/!d;s|.*udpcast-||;s|.tar.gz.*||;q'
   12.12 +}
   12.13 +
   12.14  # Rules to configure and make the package.
   12.15  compile_rules()
   12.16  {
    13.1 --- a/vde2/receipt	Thu Jan 20 17:20:42 2022 +0100
    13.2 +++ b/vde2/receipt	Fri Jan 21 10:59:24 2022 +0000
    13.3 @@ -13,10 +13,17 @@
    13.4  DEPENDS="libcrypto"
    13.5  BUILD_DEPENDS="libcrypto libcrypto-dev"
    13.6  
    13.7 +# What is the latest version available today?
    13.8 +current_version()
    13.9 +{
   13.10 +	wget -O - https://sourceforge.net/projects/vde/files/vde2 2>/dev/null | \
   13.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   13.12 +	sed '/\/vde2/!d;/tar/!d;s|.*/vde2-||;s|.tar.*||;q'
   13.13 +}
   13.14 +
   13.15  # Rules to configure and make the package.
   13.16  compile_rules()
   13.17  {
   13.18 -	cd $src
   13.19  	./configure --prefix=/usr \
   13.20  	--libexecdir=/usr/lib/$PACKAGE \
   13.21  	--sysconfdir=/etc \
    14.1 --- a/wxWidgets28/receipt	Thu Jan 20 17:20:42 2022 +0100
    14.2 +++ b/wxWidgets28/receipt	Fri Jan 21 10:59:24 2022 +0000
    14.3 @@ -19,6 +19,14 @@
    14.4  xorg-dev xorg-xineramaproto libglu-mesa mesa-dev libpng-dev tiff-dev \
    14.5  jpeg-dev xorg-libXpm-dev patch"
    14.6  
    14.7 +# What is the latest version available today?
    14.8 +current_version()
    14.9 +{
   14.10 +	wget -O - https://sourceforge.net/projects/wxwindows/files/ 2>/dev/null | \
   14.11 +	sed '/2.8/!d;/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
   14.12 +	sed '/wxWidgets-2.8/!d;/tar..z/!d;s|.*wxWidgets-||;s|.tar.*||;s|-.*||;q'
   14.13 +}
   14.14 +
   14.15  # Rules to configure and make the package.
   14.16  compile_rules()
   14.17  {
    15.1 --- a/wxpython/receipt	Thu Jan 20 17:20:42 2022 +0100
    15.2 +++ b/wxpython/receipt	Fri Jan 21 10:59:24 2022 +0000
    15.3 @@ -14,6 +14,14 @@
    15.4  DEPENDS="python wxWidgets28"
    15.5  BUILD_DEPENDS="python-dev wxWidgets28-dev mesa-dev"
    15.6  
    15.7 +# What is the latest version available today?
    15.8 +current_version()
    15.9 +{
   15.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/$SOURCE 2>/dev/null | \
   15.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   15.12 +	sed '/wxPython-src/!d;s|.*wxPython-src-||;s|.tar.*||;q'
   15.13 +}
   15.14 +
   15.15  # Rules to configure and make the package.
   15.16  compile_rules()
   15.17  {