wok rev 25375

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 30 08:30:06 2022 +0000 (2022-07-30)
parents e375c479e25e
children d00aec28667f
files bittorrent/receipt dokuwiki/receipt fbvnc/receipt foo2xqx/receipt jpegoptim/receipt libgooglepinyin/receipt linuxconsoletools/receipt lzip/receipt shared-mime-info/receipt uhd/receipt xa/receipt zsnes/receipt
line diff
     1.1 --- a/bittorrent/receipt	Fri Jul 29 15:53:36 2022 +0100
     1.2 +++ b/bittorrent/receipt	Sat Jul 30 08:30:06 2022 +0000
     1.3 @@ -19,7 +19,7 @@
     1.4  current_version()
     1.5  {
     1.6  	wget -O - ${WGET_URL%/*} 2>/dev/null | \
     1.7 -	sed '/BitTorrent/!d;s|.*BitTorrent-||;s|.tar.*||' | sort -Vr | sed q
     1.8 +	sed '/BitTorrent-/!d;/Stable/d;s|.*BitTorrent-||;s|.[te].*||' | sort -Vr | sed q
     1.9  }
    1.10  
    1.11  # Rules to configure and make the package.
     2.1 --- a/dokuwiki/receipt	Fri Jul 29 15:53:36 2022 +0100
     2.2 +++ b/dokuwiki/receipt	Sat Jul 30 08:30:06 2022 +0000
     2.3 @@ -15,7 +15,7 @@
     2.4  current_version()
     2.5  {
     2.6  	wget -O - https://github.com/splitbrain/dokuwiki/tags 2>/dev/null | \
     2.7 -	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|.*stable_||;q'
     2.8 +	sed '/archive.*tar/!d;/candidate/d;s|.*/v*\(.*\).tar.*|\1|;s|.*stable_||;q'
     2.9  }
    2.10  
    2.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.1 --- a/fbvnc/receipt	Fri Jul 29 15:53:36 2022 +0100
     3.2 +++ b/fbvnc/receipt	Sat Jul 30 08:30:06 2022 +0000
     3.3 @@ -21,7 +21,7 @@
     3.4  current_version()
     3.5  {
     3.6  	wget -O - $WEB_SITE/shortlog 2>/dev/null | \
     3.7 -	sed '/<td title=/!d;s|.*<i>||;s|</.*||;s|-||g;q'
     3.8 +	sed '/<td title=/!d;s|.*[">]\(20[0-9]\)|\1|;s|["<].*||;s|-||g;q'
     3.9  }
    3.10  
    3.11  # Rules to configure and make the package.
     4.1 --- a/foo2xqx/receipt	Fri Jul 29 15:53:36 2022 +0100
     4.2 +++ b/foo2xqx/receipt	Sat Jul 30 08:30:06 2022 +0000
     4.3 @@ -7,7 +7,7 @@
     4.4  MAINTAINER="pascal.bellard@slitaz.org"
     4.5  LICENSE="GPL2"
     4.6  TARBALL="foo2zjs.tar.gz"
     4.7 -WEB_SITE="http://foo2xqx.rkkda.com/"
     4.8 +WEB_SITE="https://github.com/koenkooi/foo2zjs/"
     4.9  WGET_URL="http://foo2zjs.rkkda.com/$TARBALL"
    4.10  
    4.11  DEPENDS="ghostscript foo2xqx-data"
     5.1 --- a/jpegoptim/receipt	Fri Jul 29 15:53:36 2022 +0100
     5.2 +++ b/jpegoptim/receipt	Sat Jul 30 08:30:06 2022 +0000
     5.3 @@ -13,10 +13,11 @@
     5.4  BUILD_DEPENDS="jpeg-dev"
     5.5  DEPENDS="jpeg-dev"
     5.6  
     5.7 +# What is the latest version available today?
     5.8  current_version()
     5.9  {
    5.10  	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    5.11 -	sed '/archive.*tar/!d;s|.*/RELEASE.\(.*\).tar.*|\1|;q'
    5.12 +	sed '/archive.*tar/!d;s|.*/[A-Z\.v]\(.*\).tar.*|\1|;q'
    5.13  }
    5.14  
    5.15  # Rules to configure and make the package.
     6.1 --- a/libgooglepinyin/receipt	Fri Jul 29 15:53:36 2022 +0100
     6.2 +++ b/libgooglepinyin/receipt	Sat Jul 30 08:30:06 2022 +0000
     6.3 @@ -18,7 +18,7 @@
     6.4  current_version()
     6.5  {
     6.6  	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
     6.7 -	sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
     6.8 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
     6.9  }
    6.10  
    6.11  # Rules to configure and make the package.
     7.1 --- a/linuxconsoletools/receipt	Fri Jul 29 15:53:36 2022 +0100
     7.2 +++ b/linuxconsoletools/receipt	Sat Jul 30 08:30:06 2022 +0000
     7.3 @@ -18,7 +18,7 @@
     7.4  current_version()
     7.5  {
     7.6  	wget -O - https://sourceforge.net/projects/linuxconsole/files/ 2>/dev/null | \
     7.7 -	sed '/scope="row/!d;s|.*/linuxconsoletools-||;s|.tar.*||;q'
     7.8 +	sed '/scope="row/!d;/linuxconsoletools-/!d;s|.*/linuxconsoletools-||;s|.tar.*||;q'
     7.9  }
    7.10  
    7.11  # Rules to configure and make the package.
     8.1 --- a/lzip/receipt	Fri Jul 29 15:53:36 2022 +0100
     8.2 +++ b/lzip/receipt	Sat Jul 30 08:30:06 2022 +0000
     8.3 @@ -15,10 +15,11 @@
     8.4  
     8.5  HOST_ARCH="i486 arm"
     8.6  
     8.7 +# What is the latest version available today?
     8.8  current_version()
     8.9  {
    8.10  	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    8.11 -	sed '/>lzip-/!d;s|.*lzip-||;s|.tar.*||' | sed '$!d'
    8.12 +	sed '/>lzip-/!d;/tar/d;s|.*lzip-||;s|.tar.*||' | sed '$!d'
    8.13  }
    8.14  
    8.15  # Rules to configure and make the package.
     9.1 --- a/shared-mime-info/receipt	Fri Jul 29 15:53:36 2022 +0100
     9.2 +++ b/shared-mime-info/receipt	Sat Jul 30 08:30:06 2022 +0000
     9.3 @@ -22,10 +22,11 @@
     9.4  	arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
     9.5  esac
     9.6  
     9.7 +# What is the latest version available today?
     9.8  current_version()
     9.9  {
    9.10 -	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    9.11 -	sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
    9.12 +	wget -O - 'https://gitlab.freedesktop.org/xdg/shared-mime-info/-/tags?sort=updated_desc' 2>/dev/null | \
    9.13 +	sed '/shared-mime-info-[0-9]/!d;/tar/!d;s|.*shared-mime-info-||;s|.tar.*||;q'
    9.14  }
    9.15  
    9.16  # Rules to configure and make the package.
    10.1 --- a/uhd/receipt	Fri Jul 29 15:53:36 2022 +0100
    10.2 +++ b/uhd/receipt	Sat Jul 30 08:30:06 2022 +0000
    10.3 @@ -18,10 +18,11 @@
    10.4  libboost-system-dev libboost-test-dev libboost-serialization-dev \
    10.5  libboost-thread-dev libboost-tr1-dev libusb-dev udev-dev"
    10.6  
    10.7 +# What is the latest version available today?
    10.8  current_version()
    10.9  {
   10.10  	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
   10.11 -	sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
   10.12 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   10.13  }
   10.14  
   10.15  # Rules to configure and make the package.
    11.1 --- a/xa/receipt	Fri Jul 29 15:53:36 2022 +0100
    11.2 +++ b/xa/receipt	Sat Jul 30 08:30:06 2022 +0000
    11.3 @@ -16,7 +16,7 @@
    11.4  current_version()
    11.5  {
    11.6  	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    11.7 -	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    11.8 +	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
    11.9  }
   11.10  
   11.11  # Rules to configure and make the package.
    12.1 --- a/zsnes/receipt	Fri Jul 29 15:53:36 2022 +0100
    12.2 +++ b/zsnes/receipt	Sat Jul 30 08:30:06 2022 +0000
    12.3 @@ -15,11 +15,11 @@
    12.4  BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev \
    12.5  automake autoconf zlib-dev patch"
    12.6  
    12.7 +# What is the latest version available today?
    12.8  current_version()
    12.9  {
   12.10 -	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
   12.11 -	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
   12.12 -	sed '/zip/!d;s|.*ZSNES v||;s|/.*||;q'
   12.13 +	wget -O - $WEB_SITE 2>/dev/null | \
   12.14 +	sed '/atest .ersion/!d;s|.*/b> *||;s|[^0-9\.].*||;q'
   12.15  }
   12.16  
   12.17  # Rules to configure and make the package.