wok rev 24505

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 20 12:07:59 2022 +0000 (2022-02-20)
parents e81a854f7503
children 8f37db468deb
files emotion/receipt enlightenment-pam/receipt enlightenment/receipt slitaz-icon/receipt sokojs/receipt songwrite/receipt tcpoverudp/receipt terminology/receipt thunar-volman/receipt ttf-bwahh/receipt ttf-warenhaus-typenhebel/receipt vzctl/receipt webdiapo/receipt wordpress/receipt xsshfs/receipt
line diff
     1.1 --- a/emotion/receipt	Sun Feb 20 11:26:24 2022 +0100
     1.2 +++ b/emotion/receipt	Sun Feb 20 12:07:59 2022 +0000
     1.3 @@ -17,6 +17,13 @@
     1.4  eeze-dev xine-lib-dev lua-dev"
     1.5  OPTIONAL_DEPENDS="gstreamer-dev gst-plugins-base-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - http://download.enlightenment.org/rel/libs/emotion_generic_players/ 2>/dev/null | \
    1.11 +	sed '/emotion_generic_players-[0-9]/!d;/a[0-9].tar/d;s|.*players-||;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/enlightenment-pam/receipt	Sun Feb 20 11:26:24 2022 +0100
     2.2 +++ b/enlightenment-pam/receipt	Sun Feb 20 12:07:59 2022 +0000
     2.3 @@ -21,6 +21,13 @@
     2.4  bluez-dev connman-dev pam-dev pm-utils"
     2.5  SUGGESTED="bluez wpa_supplicant connman pm-utils"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \
    2.11 +	sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
     3.1 --- a/enlightenment/receipt	Sun Feb 20 11:26:24 2022 +0100
     3.2 +++ b/enlightenment/receipt	Sun Feb 20 12:07:59 2022 +0000
     3.3 @@ -23,6 +23,13 @@
     3.4  	i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils" ;;
     3.5  esac
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - http://download.enlightenment.org/rel/libs/elementary/ 2>/dev/null | \
    3.11 +	sed '/elementary-[0-9]/!d;/a[0-9].tar/d;s|.*elementary-||;s|.tar.*||' | sort -Vr | sed q
    3.12 +}
    3.13 +
    3.14  # Rules to configure and make the package.
    3.15  compile_rules()
    3.16  {
     4.1 --- a/slitaz-icon/receipt	Sun Feb 20 11:26:24 2022 +0100
     4.2 +++ b/slitaz-icon/receipt	Sun Feb 20 12:07:59 2022 +0000
     4.3 @@ -13,6 +13,13 @@
     4.4  
     4.5  BUILD_DEPENDS="faenza-icon-theme"
     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 "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
    4.12 +}
    4.13 +
    4.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.15  genpkg_rules()
    4.16  {
     5.1 --- a/sokojs/receipt	Sun Feb 20 11:26:24 2022 +0100
     5.2 +++ b/sokojs/receipt	Sun Feb 20 12:07:59 2022 +0000
     5.3 @@ -10,6 +10,14 @@
     5.4  WEB_SITE="http://buze.michel.chez.com/Boxworld/src.htm"
     5.5  WGET_URL="http://buze.michel.chez.com/sokojs.zip"
     5.6  
     5.7 +# What is the latest version available today?
     5.8 +current_version()
     5.9 +{
    5.10 +	# https://github.com/framasoft/framagames/tree/master/sokojs
    5.11 +	wget -O - https://github.com/michbuze/sokojs/commits/master 2>/dev/null | \
    5.12 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y -d
    5.13 +}
    5.14 +
    5.15  # Rules to configure and make the package.
    5.16  compile_rules()
    5.17  {
     6.1 --- a/songwrite/receipt	Sun Feb 20 11:26:24 2022 +0100
     6.2 +++ b/songwrite/receipt	Sun Feb 20 12:07:59 2022 +0000
     6.3 @@ -15,6 +15,13 @@
     6.4  BUILD_DEPENDS="python"
     6.5  SUGGESTED="TiMidity++ evince"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - $WEB_SITE 2>/dev/null | \
    6.11 +	sed '/Songwrite 2 [0-9]/!d;s|.*Songwrite 2 ||;s|<.*||;q'
    6.12 +}
    6.13 +
    6.14  # Rules to configure and make the package.
    6.15  compile_rules()
    6.16  {
     7.1 --- a/tcpoverudp/receipt	Sun Feb 20 11:26:24 2022 +0100
     7.2 +++ b/tcpoverudp/receipt	Sun Feb 20 12:07:59 2022 +0000
     7.3 @@ -12,6 +12,13 @@
     7.4  
     7.5  DEPENDS="perl"
     7.6  
     7.7 +# What is the latest version available today?
     7.8 +current_version()
     7.9 +{
    7.10 +	wget -O - 'https://git.jankratochvil.net/?p=tcpoverudp.git;a=history;f=tcpoverudp;hb=HEAD' 2>/dev/null | \
    7.11 +	sed '/td title/!d;s|.*<i>||;s|</i.*||;s|-||g;q'
    7.12 +}
    7.13 +
    7.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    7.15  genpkg_rules()
    7.16  {
     8.1 --- a/terminology/receipt	Sun Feb 20 11:26:24 2022 +0100
     8.2 +++ b/terminology/receipt	Sun Feb 20 12:07:59 2022 +0000
     8.3 @@ -15,6 +15,13 @@
     8.4  DEPENDS="elementary ethumb"
     8.5  BUILD_DEPENDS="elementary-dev ethumb-dev"
     8.6  
     8.7 +# What is the latest version available today?
     8.8 +current_version()
     8.9 +{
    8.10 +	wget -O - http://download.enlightenment.org/rel/apps/terminology/ 2>/dev/null | \
    8.11 +	sed '/terminology-[0-9]/!d;/a[0-9].tar/d;s|.*terminology-||;s|.tar.*||' | sort -Vr | sed q
    8.12 +}
    8.13 +
    8.14  # Rules to configure and make the package.
    8.15  compile_rules()
    8.16  {
     9.1 --- a/thunar-volman/receipt	Sun Feb 20 11:26:24 2022 +0100
     9.2 +++ b/thunar-volman/receipt	Sun Feb 20 12:07:59 2022 +0000
     9.3 @@ -15,6 +15,15 @@
     9.4   xfconf-dev startup-notification-dev util-linux-uuid-dev libxml2-dev libnotify-dev
     9.5   libxfce4util-dev xcb-util-dev"
     9.6  
     9.7 +# What is the latest version available today?
     9.8 +current_version()
     9.9 +{
    9.10 +	wget -O - https://archive.xfce.org/src/xfce/thunar-volman/$( \
    9.11 +	wget -O - https://archive.xfce.org/src/xfce/thunar-volman/ 2>/dev/null | \
    9.12 +	sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
    9.13 +	sed "/hunar-/!d;/tar/!d;s|.*volman-||;s|.tar.*||" | sort -Vr | sed q
    9.14 +}
    9.15 +
    9.16  # Rules to configure and make the package.
    9.17  compile_rules()
    9.18  {
    10.1 --- a/ttf-bwahh/receipt	Sun Feb 20 11:26:24 2022 +0100
    10.2 +++ b/ttf-bwahh/receipt	Sun Feb 20 12:07:59 2022 +0000
    10.3 @@ -15,6 +15,13 @@
    10.4  
    10.5  DEPENDS=""
    10.6  BUILD_DEPENDS="wget"
    10.7 + 
    10.8 +# What is the latest version available today?
    10.9 +current_version()
   10.10 +{
   10.11 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   10.12 +	sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
   10.13 +}
   10.14  
   10.15  # Rules to configure and make the package.
   10.16  compile_rules()
    11.1 --- a/ttf-warenhaus-typenhebel/receipt	Sun Feb 20 11:26:24 2022 +0100
    11.2 +++ b/ttf-warenhaus-typenhebel/receipt	Sun Feb 20 12:07:59 2022 +0000
    11.3 @@ -16,6 +16,13 @@
    11.4  DEPENDS=""
    11.5  BUILD_DEPENDS="wget"
    11.6  
    11.7 +# What is the latest version available today?
    11.8 +current_version()
    11.9 +{
   11.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
   11.11 +	sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
   11.12 +}
   11.13 +
   11.14  # Rules to configure and make the package.
   11.15  compile_rules()
   11.16  {
    12.1 --- a/vzctl/receipt	Sun Feb 20 11:26:24 2022 +0100
    12.2 +++ b/vzctl/receipt	Sun Feb 20 12:07:59 2022 +0000
    12.3 @@ -13,6 +13,13 @@
    12.4  DEPENDS="udev bash procmail bridge-utils logrotate tar gzip"
    12.5  BUILD_DEPENDS="sed"
    12.6  
    12.7 +# What is the latest version available today?
    12.8 +current_version()
    12.9 +{
   12.10 +	wget -O - http://download.openvz.org/utils/${PACKAGE}/ 2>/dev/null | \
   12.11 +	sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
   12.12 +}
   12.13 +
   12.14  # Rules to configure and make the package.
   12.15  compile_rules()
   12.16  {
    13.1 --- a/webdiapo/receipt	Sun Feb 20 11:26:24 2022 +0100
    13.2 +++ b/webdiapo/receipt	Sun Feb 20 12:07:59 2022 +0000
    13.3 @@ -11,6 +11,13 @@
    13.4  TARBALL="WebDiapo_v$VERSION.zip"
    13.5  WGET_URL="${WEB_SITE}pages/$TARBALL"
    13.6  
    13.7 +# What is the latest version available today?
    13.8 +current_version()
    13.9 +{
   13.10 +	wget -O - $WEB_SITE 2>/dev/null | \
   13.11 +	sed '/Version/!d;s|.*Version ||;s|<.*||'
   13.12 +}
   13.13 +
   13.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   13.15  genpkg_rules()
   13.16  {
    14.1 --- a/wordpress/receipt	Sun Feb 20 11:26:24 2022 +0100
    14.2 +++ b/wordpress/receipt	Sun Feb 20 12:07:59 2022 +0000
    14.3 @@ -14,6 +14,13 @@
    14.4  SUGGESTED="apache cherokee"
    14.5  DEPENDS="mysql php php-mysql"
    14.6  
    14.7 +# What is the latest version available today?
    14.8 +current_version()
    14.9 +{
   14.10 +	wget -O - https://core.trac.wordpress.org/browser 2>/dev/null | \
   14.11 +	sed 's|<opt|\n&|g' | sed '/tags\/[0-9]/!d;s|.*">tags/||;s|<.*||' | sort -Vr | sed q
   14.12 +}
   14.13 +
   14.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   14.15  genpkg_rules()
   14.16  {
    15.1 --- a/xsshfs/receipt	Sun Feb 20 11:26:24 2022 +0100
    15.2 +++ b/xsshfs/receipt	Sun Feb 20 12:07:59 2022 +0000
    15.3 @@ -14,6 +14,13 @@
    15.4  DEPENDS="sshfs perl-config-tiny perl-locale-gettext glade-perl perl-image-librsvg"
    15.5  SUGGESTED="pcmanfm"
    15.6  
    15.7 +# What is the latest version available today?
    15.8 +current_version()
    15.9 +{
   15.10 +	wget -O - https://framagit.org/kepon/xsshfs/-/commits/master 2>/dev/null | \
   15.11 +	sed '/data-day/!d;s|.*day="||;s|".*||;s|-||g;q'
   15.12 +}
   15.13 +
   15.14  # Rules to gen a SliTaz package suitable for Tazpkg.
   15.15  genpkg_rules()
   15.16  {