# HG changeset patch # User Pascal Bellard # Date 1645012410 0 # Node ID 2f230197370e98a6590c43cb1a914a5f41921bc0 # Parent 76ea5d09d6b914716d69405d0c0df110f4ac76df Add some current_version diff -r 76ea5d09d6b9 -r 2f230197370e p0f/receipt --- a/p0f/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/p0f/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ BUILD_DEPENDS="libpcap-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pass/receipt --- a/pass/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pass/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ SUGGESTED="git gnupg" DEPENDS="bash" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \ + sed "/latest/d;/$SOURCE-[0-9]/!d;/zip/!d;s|.*$SOURCE-\\(.*\\).zip.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pce/receipt --- a/pce/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pce/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="readline ncurses libsdl xorg-libX11 libxcb xorg-libXau xorg-libXdmcp" BUILD_DEPENDS="readline-dev ncurses-dev libsdl-dev xorg-dev" +# What is the latest version available today? +current_version() +{ + wget -O - http://www.hampa.ch/pce/download.html 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pflogsumm/receipt --- a/pflogsumm/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pflogsumm/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ SUGGESTED="postfix" DEPENDS="perl-date-calc" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e postgresql/receipt --- a/postgresql/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/postgresql/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,15 @@ BUILD_DEPENDS="zlib-dev readline-dev ncurses-dev bison flex perl libxslt \ python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://www.postgresql.org/ftp/source/$(\ + wget -O - https://www.postgresql.org/ftp/source/ 2>/dev/null | \ + sed '/href="v[0-9]/!d;s|.*href="||;s|/.*||;q')/ 2>/dev/null | \ + sed '/postgresql-/!d;/news/d;s|.*postgresql-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e proftpd/receipt --- a/proftpd/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/proftpd/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="" BUILD_DEPENDS="" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/[0-9]rc[0-9]/d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e psycopg2/receipt --- a/psycopg2/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/psycopg2/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ DEPENDS="egenix-mx-base libpostgresqlclient python" BUILD_DEPENDS="postgresql-dev python-dev python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - https://pypi.org/project/psycopg2/ 2>/dev/null | \ + sed '/psycopg2 [0-9]/!d;s|.*psycopg2 ||' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e putty/receipt --- a/putty/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/putty/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -19,6 +19,13 @@ xorg-libXrender zlib" BUILD_DEPENDS="gtk+-dev imagemagick krb5-dev libltdl openexr perl py3k" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e py3k/receipt --- a/py3k/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/py3k/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \ ncursesw-dev liblzma-dev wget" +# What is the latest version available today? +current_version() +{ + wget -O - https://www.python.org/downloads/ 2>/dev/null | \ + sed '/Download Python [0-9]/!d;s|.*Python ||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pyaudio/receipt --- a/pyaudio/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pyaudio/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="portaudio python" BUILD_DEPENDS="portaudio-dev python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/new release/!d;s| is.*||;s|[^0-9]*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pycurl/receipt --- a/pycurl/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pycurl/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="libcurl python" BUILD_DEPENDS="curl-dev openssl-dev python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/PYCURL [0-9]/!d;s|.*CURL ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pyhn/receipt --- a/pyhn/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pyhn/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python python-urwid" BUILD_DEPENDS="python-dev python-urwid git bzip2" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/toxinu/pyhn/commits/main 2>/dev/null | \ + sed '/Release/!d;s|.*elease ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pyroom/receipt --- a/pyroom/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pyroom/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python pygtk python-xdg libffi" BUILD_DEPENDS="python python-dev gettext" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/PyRoom [0-9]/!d;s|.*Room ||;s| released.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e pysize/receipt --- a/pysize/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/pysize/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python ncurses pygtk librsvg" BUILD_DEPENDS="python-dev ncurses-dev pygtk-dev python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/pysize-/!d;/tar/!d;s|.*pysize-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-apsw/receipt --- a/python-apsw/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-apsw/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="sqlite" BUILD_DEPENDS="python-dev sqlite-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/released/!d;s|.*APSW ||;s| released.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-attrs/receipt --- a/python-attrs/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-attrs/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="python" BUILD_DEPENDS="python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/Release/!d;s|.*lease v||;s| .*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-cffi/receipt --- a/python-cffi/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-cffi/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python" BUILD_DEPENDS="python-setuptools python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/html#v/!d;s|.*>v||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-cheetah/receipt --- a/python-cheetah/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-cheetah/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/news.html#id/!d;s|.*">||;s| .*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-django/receipt --- a/python-django/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-django/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ DEPENDS="python python-pysqlite" BUILD_DEPENDS="python python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/latest/!d;s|.*release: ||;s|<.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-dnspython/receipt --- a/python-dnspython/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-dnspython/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="python" BUILD_DEPENDS="python python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - https://pypi.org/project/dnspython/ 2>/dev/null | \ + sed '/dnspython [0-9]/!d;s|.*dnspython ||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-genshi/receipt --- a/python-genshi/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-genshi/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/edgewall/genshi/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-pyweb/receipt --- a/python-pyweb/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-pyweb/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="python" BUILD_DEPENDS="python" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/webpy/webpy/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-smbus/receipt --- a/python-smbus/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-smbus/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ DEPENDS="python" BUILD_DEPENDS="python-dev python-setuptools" +# What is the latest version available today? +current_version() +{ + wget -O - https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/ 2>/dev/null | \ + sed '/i2c-tools-/!d;/tar/!d;s|.*i2c-tools-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e python-xdg/receipt --- a/python-xdg/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/python-xdg/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="python" BUILD_DEPENDS="python python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/takluyver/pyxdg/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rack/receipt --- a/rack/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rack/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="ruby activerecord" BUILD_DEPENDS="$DEPENDS ruby-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/versions\//!d;s|.*versions/||;s|".*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e radeontool/receipt --- a/radeontool/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/radeontool/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="xorg-libpciaccess" BUILD_DEPENDS="pkg-config xorg-libpciaccess-dev" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e ragel/receipt --- a/ragel/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/ragel/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -11,6 +11,13 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://www.colm.net/files/$PACKAGE/$TARBALL" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rails/receipt --- a/rails/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rails/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ COOK_OPT="!repack_src !unpack" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/versions\//!d;s|.*versions/||;s|".*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rake/receipt --- a/rake/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rake/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ COOK_OPT="!repack_src !unpack" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/versions\//!d;s|.*versions/||;s|".*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rapidsvn/receipt --- a/rapidsvn/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rapidsvn/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -17,6 +17,13 @@ apr-util-dev cyrus-sasl-dev neon-dev libproxy-dev sqlite-dev expat-dev python \ util-linux-uuid-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/latest/!d;s|.*version: ||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e raptor/receipt --- a/raptor/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/raptor/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="curl libxml2 libxslt openssl zlib" BUILD_DEPENDS="curl-dev libidn-dev libxml2-dev libxslt-dev openssl-dev zlib-dev" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rawstudio/receipt --- a/rawstudio/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rawstudio/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="desktop-file-utils dbus exiv2 GConf gtk+ lcms jpeg libjpeg tiff libxml2" BUILD_DEPENDS="exiv2-dev GConf-dev gtk+-dev dbus-dev lcms-dev jpeg-dev tiff-dev libxml2-dev" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/RC/d;/BETA/d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rclone/receipt --- a/rclone/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rclone/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="rsync" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/rclone/rclone/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rcssmin/receipt --- a/rcssmin/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rcssmin/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python" BUILD_DEPENDS="python-dev" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e roundup/receipt --- a/roundup/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/roundup/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="python" +# What is the latest version available today? +current_version() +{ + wget -O - https://pypi.org/project/roundup/ 2>/dev/null | \ + sed '/roundup [0-9]/!d;s|.*roundup ||' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rpm4/receipt --- a/rpm4/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rpm4/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -19,6 +19,13 @@ liblzma-dev libmagic-dev nspr-dev nss-dev popt-dev python-dev zlib-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/released/!d;s|.*RPM ||;s| rel.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rsbep/receipt --- a/rsbep/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rsbep/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -12,6 +12,13 @@ SUGGESTED="python" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/ttsiodras/rsbep-backup/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e rtmpdump/receipt --- a/rtmpdump/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rtmpdump/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ DEPENDS="libssl" BUILD_DEPENDS="openssl-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/latest rel/!d;s|.* is ||;s| .*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e ruby-enterprise/receipt --- a/ruby-enterprise/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/ruby-enterprise/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -16,6 +16,13 @@ DEPENDS="libdb ncurses libssl readline zlib" BUILD_DEPENDS="zlib-dev" +# What is the latest version available today? +current_version() +{ + wget -O - http://www.rubyenterpriseedition.com/download.html 2>/dev/null | \ + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 76ea5d09d6b9 -r 2f230197370e ruby/receipt --- a/ruby/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/ruby/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -20,6 +20,13 @@ HOST_ARCH="i486 arm" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE/en/ 2>/dev/null | \ + sed '/eleased/!d;s|.*Ruby ||;s| .*||;q' +} + # Handle cross compilation. case "$ARCH" in i?86) diff -r 76ea5d09d6b9 -r 2f230197370e rust/receipt --- a/rust/receipt Wed Feb 16 09:58:13 2022 +0100 +++ b/rust/receipt Wed Feb 16 11:53:30 2022 +0000 @@ -14,6 +14,13 @@ SIBLINGS="rust-cargo" BUILD_DEPENDS="cacerts" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/ersion/!d;s|.*ion ||;s|<.*||;q' +} + # Rules to configure and make the package. compile_rules() {