# HG changeset patch # User Pascal Bellard # Date 1677492350 0 # Node ID 595fe6959202137bcd067693bd1a1600f675daef # Parent 000946205748c64683600ad21902ed71a1888466 Add some current_version() diff -r 000946205748 -r 595fe6959202 libluv-dev/receipt --- a/libluv-dev/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libluv-dev/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -3,11 +3,11 @@ PACKAGE="libluv-dev" VERSION="1.44.2.1" CATEGORY="development" -TAGS="lua" SHORT_DESC="Bare libuv bindings for lua - development files." MAINTAINER="maintainer@slitaz.org" LICENSE="Apache-2.0" WEB_SITE="https://github.com/luvit/luv" +TAGS="lua" WANTED="libluv" diff -r 000946205748 -r 595fe6959202 libluv/receipt --- a/libluv/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libluv/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -15,6 +15,13 @@ DEPENDS="libuv" BUILD_DEPENDS="cmake libuv-dev luajit-dev ninja" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-|.|;q' +} + # Rules to configure and make the package. compile_rules() { @@ -26,7 +33,7 @@ -DLUA_BUILD_TYPE=System \ -DBUILD_MODULE=OFF \ -DBUILD_SHARED_LIBS=ON \ - -DBUILD_STATIC_LIBS=OFF + -DBUILD_STATIC_LIBS=ON cmake --build _build DESTDIR="$DESTDIR" cmake --install _build } diff -r 000946205748 -r 595fe6959202 libmpack/receipt --- a/libmpack/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libmpack/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -13,6 +13,13 @@ BUILD_DEPENDS="libtool" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 libtermkey/receipt --- a/libtermkey/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libtermkey/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -13,6 +13,13 @@ BUILD_DEPENDS="libtool unibilium-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE/libtermkey 2>/dev/null | \ + sed '/tar.gz/!d;s|.*key-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 libuv/receipt --- a/libuv/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libuv/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -13,6 +13,13 @@ BUILD_DEPENDS="autoconf automake libtool" +# What is the latest version available today? +current_version() +{ + wget -O - https://dist.libuv.org/dist/ 2>/dev/null | \ + sed '/href="v/!d;s|.*"v||;s|/".*||' | sort -Vr | sed q +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 libvterm/receipt --- a/libvterm/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/libvterm/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -14,6 +14,13 @@ BUILD_DEPENDS="libtool perl" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/tar.gz/!d;s|.*term-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 lua5.1-lpeg/receipt --- a/lua5.1-lpeg/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/lua5.1-lpeg/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -16,6 +16,13 @@ SUGGESTED="lua5.1" BUILD_DEPENDS="lua5.1-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/tar.gz/!d;s|.*lpeg-||;s|.tar.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 lua5.1-mpack/receipt --- a/lua5.1-mpack/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/lua5.1-mpack/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -17,6 +17,13 @@ DEPENDS="libmpack" BUILD_DEPENDS="libmpack-dev lua5.1 lua5.1-dev" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 neovim/receipt --- a/neovim/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/neovim/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -21,6 +21,13 @@ CONFIG_FILES="/usr/share/nvim/sysinit.vim" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 tree-sitter/receipt --- a/tree-sitter/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/tree-sitter/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -11,6 +11,13 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() { diff -r 000946205748 -r 595fe6959202 unibilium/receipt --- a/unibilium/receipt Mon Feb 27 09:07:28 2023 +0000 +++ b/unibilium/receipt Mon Feb 27 10:05:50 2023 +0000 @@ -14,6 +14,13 @@ BUILD_DEPENDS="libtool perl" +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to configure and make the package. compile_rules() {