wok rev 24713

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 14 18:23:09 2022 +0000 (2022-03-14)
parents 146694a9ddfa
children 7885246fa96e
files ntk/receipt picoblog/receipt pypar2/receipt python-ecore/receipt python-edje/receipt python-elementary/receipt qemu-light/receipt qemulator/receipt rgzip/receipt sawman/receipt scratch/receipt sheerdns/receipt slim-theme-clean/receipt smx/receipt snort-mysql/receipt stoqlib/receipt trafshow/receipt ttf-inconsolata-dz/receipt ubuntu-font-family/receipt ufr2/receipt umplayer-svn/receipt varka/receipt webkit-r/receipt wvstreams/receipt xfce-utils/receipt xstroke/receipt
line diff
     1.1 --- a/ntk/receipt	Mon Mar 14 17:50:02 2022 +0100
     1.2 +++ b/ntk/receipt	Mon Mar 14 18:23:09 2022 +0000
     1.3 @@ -20,6 +20,13 @@
     1.4  	i?86) BUILD_DEPENDS="$BUILD_DEPENDS git python"
     1.5  esac
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://github.com/falkTX/ntk/tags 2>/dev/null | \
    1.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
     2.1 --- a/picoblog/receipt	Mon Mar 14 17:50:02 2022 +0100
     2.2 +++ b/picoblog/receipt	Mon Mar 14 18:23:09 2022 +0000
     2.3 @@ -14,6 +14,13 @@
     2.4  
     2.5  DEPENDS="php"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - $WGET_URL 2> /dev/null | \
    2.11 +	sed '/const VERSION/!d;s|.*= [^0-9]||;s|[^0-9\.].*||'
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
     3.1 --- a/pypar2/receipt	Mon Mar 14 17:50:02 2022 +0100
     3.2 +++ b/pypar2/receipt	Mon Mar 14 18:23:09 2022 +0000
     3.3 @@ -12,6 +12,13 @@
     3.4  DEPENDS="pygtk par2 python-pyxml python-vte"
     3.5  BUILD_DEPENDS="findutils"
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - https://tracker.debian.org/pkg/pypar2 2>/dev/null | \
    3.11 +	sed '/changelog-/!d;s|.*changelog-||;s|-.*||;q'
    3.12 +}
    3.13 +
    3.14  # Rules to configure and make the package.
    3.15  compile_rules()
    3.16  {
     4.1 --- a/python-ecore/receipt	Mon Mar 14 17:50:02 2022 +0100
     4.2 +++ b/python-ecore/receipt	Mon Mar 14 18:23:09 2022 +0000
     4.3 @@ -15,6 +15,13 @@
     4.4  BUILD_DEPENDS="ecore-dev python-dev python-cython autoconf automake git \
     4.5  subversion libtool file"
     4.6  
     4.7 +# What is the latest version available today?
     4.8 +current_version()
     4.9 +{
    4.10 +	wget -O - https://pypi.org/project/python-ecore/ 2>/dev/null | \
    4.11 +	sed '/python-ecore [0-9]/!d;s|.*re ||;q'
    4.12 +}
    4.13 +
    4.14  # Rules to configure and make the package.
    4.15  compile_rules()
    4.16  {
     5.1 --- a/python-edje/receipt	Mon Mar 14 17:50:02 2022 +0100
     5.2 +++ b/python-edje/receipt	Mon Mar 14 18:23:09 2022 +0000
     5.3 @@ -15,6 +15,13 @@
     5.4  BUILD_DEPENDS="file edje-dev python-evas-dev \
     5.5  python-cython autoconf automake git subversion libtool libxml2-dev"
     5.6  
     5.7 +# What is the latest version available today?
     5.8 +current_version()
     5.9 +{
    5.10 +	wget -O - https://pypi.org/project/python-edje/ 2>/dev/null | \
    5.11 +	sed '/python-edje [0-9]/!d;s|.*je ||;q'
    5.12 +}
    5.13 +
    5.14  # Rules to configure and make the package.
    5.15  compile_rules()
    5.16  {
     6.1 --- a/python-elementary/receipt	Mon Mar 14 17:50:02 2022 +0100
     6.2 +++ b/python-elementary/receipt	Mon Mar 14 18:23:09 2022 +0000
     6.3 @@ -15,6 +15,13 @@
     6.4  BUILD_DEPENDS="elementary-dev python-evas-dev python-cython \
     6.5  autoconf automake git subversion libtool file"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - https://pypi.org/project/python-elementary/ 2>/dev/null | \
    6.11 +	sed '/python-elementary [0-9]/!d;s|.*ry ||;q'
    6.12 +}
    6.13 +
    6.14  # Rules to configure and make the package.
    6.15  compile_rules()
    6.16  {
     7.1 --- a/qemu-light/receipt	Mon Mar 14 17:50:02 2022 +0100
     7.2 +++ b/qemu-light/receipt	Mon Mar 14 18:23:09 2022 +0000
     7.3 @@ -17,6 +17,12 @@
     7.4  BUILD_DEPENDS="perl alsa-lib-dev libsdl-dev util-linux-uuid-dev python \
     7.5  libgio-dev glib-dev"
     7.6  
     7.7 +# What is the latest version available today?
     7.8 +current_version()
     7.9 +{
    7.10 +	wget -O - http://qemu.org/ 2>/dev/null | sed '/tar..z/!d;s|.*">||;s|</.*||;q'
    7.11 +}
    7.12 +
    7.13  # Rules to configure and make the package.
    7.14  compile_rules()
    7.15  {
     8.1 --- a/qemulator/receipt	Mon Mar 14 17:50:02 2022 +0100
     8.2 +++ b/qemulator/receipt	Mon Mar 14 18:23:09 2022 +0000
     8.3 @@ -14,6 +14,13 @@
     8.4  
     8.5  DEPENDS="python pygtk qemu"
     8.6  
     8.7 +# What is the latest version available today?
     8.8 +current_version()
     8.9 +{
    8.10 +	wget -O - https://launchpad.net/virtualbrick 2>/dev/null | \
    8.11 +	sed '/Latest version/!d;s|.*is ||;q'
    8.12 +}
    8.13 +
    8.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    8.15  genpkg_rules()
    8.16  {
     9.1 --- a/rgzip/receipt	Mon Mar 14 17:50:02 2022 +0100
     9.2 +++ b/rgzip/receipt	Mon Mar 14 18:23:09 2022 +0000
     9.3 @@ -12,6 +12,13 @@
     9.4  DEPENDS="busybox" # gzip
     9.5  TAGS="compression"
     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 | \
    9.11 +	sed '/[0-9], [12][0-9]/!d;s|.*|"&"|' | xargs date +%Y%m%d -d
    9.12 +}
    9.13 +
    9.14  # Rules to configure and make the package.
    9.15  compile_rules()
    9.16  {
    10.1 --- a/sawman/receipt	Mon Mar 14 17:50:02 2022 +0100
    10.2 +++ b/sawman/receipt	Mon Mar 14 18:23:09 2022 +0000
    10.3 @@ -15,6 +15,13 @@
    10.4  DEPENDS="directfb"
    10.5  BUILD_DEPENDS="directfb-dev"
    10.6  
    10.7 +# What is the latest version available today?
    10.8 +current_version()
    10.9 +{
   10.10 +	wget -O - https://github.com/schenkmi/DirectFB/tags 2>/dev/null | \
   10.11 +	sed '/archive.*tar/!d;s|.*/[A-Z_]*\(.*\).tar.*|\1|;s|_|.|g;q'
   10.12 +}
   10.13 +
   10.14  # Rules to configure and make the package.
   10.15  compile_rules()
   10.16  {
    11.1 --- a/scratch/receipt	Mon Mar 14 17:50:02 2022 +0100
    11.2 +++ b/scratch/receipt	Mon Mar 14 18:23:09 2022 +0000
    11.3 @@ -15,6 +15,15 @@
    11.4  DEPENDS="pango shared-mime-info squeak-vm"
    11.5  BUILD_DEPENDS="pango-dev shared-mime-info-dev"
    11.6  
    11.7 +# What is the latest version available today?
    11.8 +current_version()
    11.9 +{
   11.10 +	wget -O - https://github.com/redshaderobotics?tab=repositories 2>/dev/null | \
   11.11 +	sed '/-linux/!d;/codeRepository/!d;s|.*href="|https://github.com/|;s|".*|/releases|' | \
   11.12 +	sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
   11.13 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   11.14 +}
   11.15 +
   11.16  # Rules to configure and make the package.
   11.17  compile_rules()
   11.18  {
    12.1 --- a/sheerdns/receipt	Mon Mar 14 17:50:02 2022 +0100
    12.2 +++ b/sheerdns/receipt	Mon Mar 14 18:23:09 2022 +0000
    12.3 @@ -11,6 +11,13 @@
    12.4  WGET_URL="${WEB_SITE}$TARBALL"
    12.5  CONFIG_FILES="/var/sheerdns"
    12.6  
    12.7 +# What is the latest version available today?
    12.8 +current_version()
    12.9 +{
   12.10 +	wget -O - https://github.com/taraszka/sheerdns-ng/commits/master 2>/dev/null | \
   12.11 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
   12.12 +}
   12.13 +
   12.14  # Rules to configure and make the package.
   12.15  compile_rules()
   12.16  {
    13.1 --- a/slim-theme-clean/receipt	Mon Mar 14 17:50:02 2022 +0100
    13.2 +++ b/slim-theme-clean/receipt	Mon Mar 14 18:23:09 2022 +0000
    13.3 @@ -16,6 +16,13 @@
    13.4  DEPENDS="slim"
    13.5  BUILD_DEPENDS="imagemagick"
    13.6  
    13.7 +# What is the latest version available today?
    13.8 +current_version()
    13.9 +{
   13.10 +	wget -O - https://github.com/roqstr/blurry-clean/commits/master 2>/dev/null | \
   13.11 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
   13.12 +}
   13.13 +
   13.14  # Rules to configure and make the package.
   13.15  compile_rules()
   13.16  {
    14.1 --- a/smx/receipt	Mon Mar 14 17:50:02 2022 +0100
    14.2 +++ b/smx/receipt	Mon Mar 14 18:23:09 2022 +0000
    14.3 @@ -14,6 +14,13 @@
    14.4  BUILD_DEPENDS="apache-dev apr-dev apr-util-dev unixODBC-dev \
    14.5  sqlite libgd-dev openssl-dev perl libtool"
    14.6  
    14.7 +# What is the latest version available today?
    14.8 +current_version()
    14.9 +{
   14.10 +	wget -O - https://github.com/earonesty/smx/releases 2>/dev/null | \
   14.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   14.12 +}
   14.13 +
   14.14  # Rules to configure and make the package.
   14.15  compile_rules()
   14.16  {
    15.1 --- a/snort-mysql/receipt	Mon Mar 14 17:50:02 2022 +0100
    15.2 +++ b/snort-mysql/receipt	Mon Mar 14 18:23:09 2022 +0000
    15.3 @@ -13,6 +13,13 @@
    15.4  BUILD_DEPENDS="pcre-dev libpcap-dev libdaq-dev libdnet-dev wget zlib-dev \
    15.5  mysql-dev flex"
    15.6  
    15.7 +# What is the latest version available today?
    15.8 +current_version()
    15.9 +{
   15.10 +	wget -O - https://www.snort.org/downloads 2>/dev/null | \
   15.11 +	sed '/tar.gz/!d;/snort[0-9]*-[0-9]/!d;s|.*snort[0-9]*-||;s|.t.*||' | sort -Vr | sed q
   15.12 +}
   15.13 +
   15.14  # Rules to configure and make the package.
   15.15  compile_rules()
   15.16  {
    16.1 --- a/stoqlib/receipt	Mon Mar 14 17:50:02 2022 +0100
    16.2 +++ b/stoqlib/receipt	Mon Mar 14 18:23:09 2022 +0000
    16.3 @@ -15,6 +15,13 @@
    16.4  BUILD_DEPENDS="python python-dev zopeinterface python-kiwi python-gazpacho \
    16.5  psycopg2 stoqdrivers python-pil python-reportlab python-dateutil"
    16.6  
    16.7 +# What is the latest version available today?
    16.8 +current_version()
    16.9 +{
   16.10 +	wget -O - https://github.com/stoq/stoq/tags 2>/dev/null | \
   16.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   16.12 +}
   16.13 +
   16.14  # Rules to configure and make the package.
   16.15  compile_rules()
   16.16  {
    17.1 --- a/trafshow/receipt	Mon Mar 14 17:50:02 2022 +0100
    17.2 +++ b/trafshow/receipt	Mon Mar 14 18:23:09 2022 +0000
    17.3 @@ -13,6 +13,13 @@
    17.4  DEPENDS="ncurses libpcap"
    17.5  BUILD_DEPENDS="ncurses-dev libpcap-dev"
    17.6  
    17.7 +# What is the latest version available today?
    17.8 +current_version()
    17.9 +{
   17.10 +	wget -O - https://fossies.org/linux/misc/old/ 2>/dev/null | \
   17.11 +	sed '/trafshow-/!d;s|.*trafshow-||;s|.t.*||;q'
   17.12 +}
   17.13 +
   17.14  # Rules to configure and make the package.
   17.15  compile_rules()
   17.16  {
    18.1 --- a/ttf-inconsolata-dz/receipt	Mon Mar 14 17:50:02 2022 +0100
    18.2 +++ b/ttf-inconsolata-dz/receipt	Mon Mar 14 18:23:09 2022 +0000
    18.3 @@ -11,6 +11,13 @@
    18.4  WGET_URL="http://media.nodnod.net/Inconsolata-dz.otf.zip"
    18.5  TAGS="font otf"
    18.6  
    18.7 +# What is the latest version available today?
    18.8 +current_version()
    18.9 +{
   18.10 +	wget -O - https://nodnod.net/posts/inconsolata-dz/ 2>/dev/null | \
   18.11 +	sed '/Update/!d;s|.*Update |"|;s|:.*|"|;q' | xargs date +%Y%m%d -d
   18.12 +}
   18.13 +
   18.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   18.15  genpkg_rules()
   18.16  {
    19.1 --- a/ubuntu-font-family/receipt	Mon Mar 14 17:50:02 2022 +0100
    19.2 +++ b/ubuntu-font-family/receipt	Mon Mar 14 18:23:09 2022 +0000
    19.3 @@ -11,6 +11,13 @@
    19.4  TARBALL="$PACKAGE-$VERSION.zip"
    19.5  WGET_URL="https://assets.ubuntu.com/v1/0cef8205-$TARBALL"
    19.6  
    19.7 +# What is the latest version available today?
    19.8 +current_version()
    19.9 +{
   19.10 +	wget -O - https://design.ubuntu.com/font/ 2>/dev/null | \
   19.11 +	gunzip | sed '/ubuntu-font-family/!d;s|.*family-||;s|.zip.*||;q'
   19.12 +}
   19.13 +
   19.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   19.15  genpkg_rules()
   19.16  {
    20.1 --- a/ufr2/receipt	Mon Mar 14 17:50:02 2022 +0100
    20.2 +++ b/ufr2/receipt	Mon Mar 14 18:23:09 2022 +0000
    20.3 @@ -15,6 +15,13 @@
    20.4  DEPENDS="cups cairo cndrvcups-common cups"
    20.5  BUILD_DEPENDS="autoconf automake cairo-dev gtk+-dev cndrvcups-common-dev cups-dev"
    20.6  
    20.7 +# What is the latest version available today?
    20.8 +current_version()
    20.9 +{
   20.10 +	wget -O - https://github.com/vicamo/cndrvcups-lb/tags 2>/dev/null | \
   20.11 +	sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
   20.12 +}
   20.13 +
   20.14  # Rules to configure and make the package.
   20.15  compile_rules()
   20.16  {	
    21.1 --- a/umplayer-svn/receipt	Mon Mar 14 17:50:02 2022 +0100
    21.2 +++ b/umplayer-svn/receipt	Mon Mar 14 18:23:09 2022 +0000
    21.3 @@ -15,6 +15,13 @@
    21.4  DEPENDS="mplayer libQtCore libQtGui libQtXml"
    21.5  BUILD_DEPENDS="subversion qt4 Qt4-dev qmake"
    21.6  
    21.7 +# What is the latest version available today?
    21.8 +current_version()
    21.9 +{
   21.10 +	wget -O - https://sourceforge.net/p/umplayer/code/HEAD/tree/ 2>/dev/null | \
   21.11 +	sed '/umplayer\/code\/[0-9]/!d;s|.*code/||;s|/.*||;q'
   21.12 +}
   21.13 +
   21.14  # Rules to configure and make the package.
   21.15  compile_rules()
   21.16  {
    22.1 --- a/varka/receipt	Mon Mar 14 17:50:02 2022 +0100
    22.2 +++ b/varka/receipt	Mon Mar 14 18:23:09 2022 +0000
    22.3 @@ -14,6 +14,13 @@
    22.4  DEPENDS="gtk+3"
    22.5  BUILD_DEPENDS="bazaar cmake gobject-introspection-dev gtk+3-dev libgio-dev vala"
    22.6  
    22.7 +# What is the latest version available today?
    22.8 +current_version()
    22.9 +{
   22.10 +	wget -O - https://code.launchpad.net/varka 2>/dev/null | \
   22.11 +	sed '/varka\/[0-9]/!d;s|.*varka/||;s|/files.*||;q'
   22.12 +}
   22.13 +
   22.14  # Rules to configure and make the package.
   22.15  compile_rules()
   22.16  {
    23.1 --- a/webkit-r/receipt	Mon Mar 14 17:50:02 2022 +0100
    23.2 +++ b/webkit-r/receipt	Mon Mar 14 18:23:09 2022 +0000
    23.3 @@ -20,6 +20,13 @@
    23.4                 gst-plugins-base-dev gstreamer-dev util-linux-uuid-dev \
    23.5                 jpeg-dev libjpeg libpng-dev pango-dev gtk+-dev orc-dev"
    23.6  
    23.7 +# What is the latest version available today?
    23.8 +current_version()
    23.9 +{
   23.10 +	wget -O - https://svn.webkit.org/repository/webkit/ 2>/dev/null | \
   23.11 +	sed '/rev="[0-9]/!d;s|.*rev="||;s|".*||;q'
   23.12 +}
   23.13 +
   23.14  # Rules to configure and make the package.
   23.15  compile_rules()
   23.16  {
    24.1 --- a/wvstreams/receipt	Mon Mar 14 17:50:02 2022 +0100
    24.2 +++ b/wvstreams/receipt	Mon Mar 14 18:23:09 2022 +0000
    24.3 @@ -14,6 +14,13 @@
    24.4  DEPENDS="ppp libssl xplc readline"
    24.5  BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash"
    24.6  
    24.7 +# What is the latest version available today?
    24.8 +current_version()
    24.9 +{
   24.10 +	wget -O - https://github.com/apenwarr/wvstreams/tags 2>/dev/null | \
   24.11 +	sed '/archive.*tar/!d;s|.*/[a-z-]*-\(.*\).tar.*|\1|;q'
   24.12 +}
   24.13 +
   24.14  # Rules to configure and make the package.
   24.15  compile_rules()
   24.16  {
    25.1 --- a/xfce-utils/receipt	Mon Mar 14 17:50:02 2022 +0100
    25.2 +++ b/xfce-utils/receipt	Mon Mar 14 18:23:09 2022 +0000
    25.3 @@ -14,6 +14,13 @@
    25.4  BUILD_DEPENDS="libxfce4util-dev libxfce4ui-dev intltool startup-notification-dev \
    25.5   util-linux-uuid-dev dbus-glib-dev libxfcegui4-dev xcb-util-dev"
    25.6  
    25.7 +# What is the latest version available today?
    25.8 +current_version()
    25.9 +{
   25.10 +	wget -O - https://gitlab.xfce.org/xfce/libxfce4util/-/tags?sort=updated_desc 2>/dev/null | \
   25.11 +	sed '/item-title/!d;s|.*util-||;s|<.*||;q'
   25.12 +}
   25.13 +
   25.14  # Rules to configure and make the package.
   25.15  compile_rules()
   25.16  {
    26.1 --- a/xstroke/receipt	Mon Mar 14 17:50:02 2022 +0100
    26.2 +++ b/xstroke/receipt	Mon Mar 14 18:23:09 2022 +0000
    26.3 @@ -14,6 +14,13 @@
    26.4  DEPENDS="xorg-libX11"
    26.5  BUILD_DEPENDS="xorg-libX11-dev"
    26.6  
    26.7 +# What is the latest version available today?
    26.8 +current_version()
    26.9 +{
   26.10 +	wget -O - https://raw.githubusercontent.com/jeevesmkii/xstroke/master/NEWS 2>/dev/null | \
   26.11 +	sed '/^xstroke-/!d;s|xstroke-||;s| .*||;q'
   26.12 +}
   26.13 +
   26.14  # Rules to configure and make the package.
   26.15  compile_rules()
   26.16  {