wok-current rev 25531
Add some current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 10:05:50 2023 +0000 (22 months ago) |
parents | 000946205748 |
children | 54d60b77baf4 |
files | libluv-dev/receipt libluv/receipt libmpack/receipt libtermkey/receipt libuv/receipt libvterm/receipt lua5.1-lpeg/receipt lua5.1-mpack/receipt neovim/receipt tree-sitter/receipt unibilium/receipt |
line diff
1.1 --- a/libluv-dev/receipt Mon Feb 27 09:07:28 2023 +0000 1.2 +++ b/libluv-dev/receipt Mon Feb 27 10:05:50 2023 +0000 1.3 @@ -3,11 +3,11 @@ 1.4 PACKAGE="libluv-dev" 1.5 VERSION="1.44.2.1" 1.6 CATEGORY="development" 1.7 -TAGS="lua" 1.8 SHORT_DESC="Bare libuv bindings for lua - development files." 1.9 MAINTAINER="maintainer@slitaz.org" 1.10 LICENSE="Apache-2.0" 1.11 WEB_SITE="https://github.com/luvit/luv" 1.12 +TAGS="lua" 1.13 1.14 WANTED="libluv" 1.15
2.1 --- a/libluv/receipt Mon Feb 27 09:07:28 2023 +0000 2.2 +++ b/libluv/receipt Mon Feb 27 10:05:50 2023 +0000 2.3 @@ -15,6 +15,13 @@ 2.4 DEPENDS="libuv" 2.5 BUILD_DEPENDS="cmake libuv-dev luajit-dev ninja" 2.6 2.7 +# What is the latest version available today? 2.8 +current_version() 2.9 +{ 2.10 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 2.11 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-|.|;q' 2.12 +} 2.13 + 2.14 # Rules to configure and make the package. 2.15 compile_rules() 2.16 { 2.17 @@ -26,7 +33,7 @@ 2.18 -DLUA_BUILD_TYPE=System \ 2.19 -DBUILD_MODULE=OFF \ 2.20 -DBUILD_SHARED_LIBS=ON \ 2.21 - -DBUILD_STATIC_LIBS=OFF 2.22 + -DBUILD_STATIC_LIBS=ON 2.23 cmake --build _build 2.24 DESTDIR="$DESTDIR" cmake --install _build 2.25 }
3.1 --- a/libmpack/receipt Mon Feb 27 09:07:28 2023 +0000 3.2 +++ b/libmpack/receipt Mon Feb 27 10:05:50 2023 +0000 3.3 @@ -13,6 +13,13 @@ 3.4 3.5 BUILD_DEPENDS="libtool" 3.6 3.7 +# What is the latest version available today? 3.8 +current_version() 3.9 +{ 3.10 + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ 3.11 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 3.12 +} 3.13 + 3.14 # Rules to configure and make the package. 3.15 compile_rules() 3.16 {
4.1 --- a/libtermkey/receipt Mon Feb 27 09:07:28 2023 +0000 4.2 +++ b/libtermkey/receipt Mon Feb 27 10:05:50 2023 +0000 4.3 @@ -13,6 +13,13 @@ 4.4 4.5 BUILD_DEPENDS="libtool unibilium-dev" 4.6 4.7 +# What is the latest version available today? 4.8 +current_version() 4.9 +{ 4.10 + wget -O - $WEB_SITE/libtermkey 2>/dev/null | \ 4.11 + sed '/tar.gz/!d;s|.*key-||;s|.tar.*||;q' 4.12 +} 4.13 + 4.14 # Rules to configure and make the package. 4.15 compile_rules() 4.16 {
5.1 --- a/libuv/receipt Mon Feb 27 09:07:28 2023 +0000 5.2 +++ b/libuv/receipt Mon Feb 27 10:05:50 2023 +0000 5.3 @@ -13,6 +13,13 @@ 5.4 5.5 BUILD_DEPENDS="autoconf automake libtool" 5.6 5.7 +# What is the latest version available today? 5.8 +current_version() 5.9 +{ 5.10 + wget -O - https://dist.libuv.org/dist/ 2>/dev/null | \ 5.11 + sed '/href="v/!d;s|.*"v||;s|/".*||' | sort -Vr | sed q 5.12 +} 5.13 + 5.14 # Rules to configure and make the package. 5.15 compile_rules() 5.16 {
6.1 --- a/libvterm/receipt Mon Feb 27 09:07:28 2023 +0000 6.2 +++ b/libvterm/receipt Mon Feb 27 10:05:50 2023 +0000 6.3 @@ -14,6 +14,13 @@ 6.4 6.5 BUILD_DEPENDS="libtool perl" 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 '/tar.gz/!d;s|.*term-||;s|.tar.*||;q' 6.12 +} 6.13 + 6.14 # Rules to configure and make the package. 6.15 compile_rules() 6.16 {
7.1 --- a/lua5.1-lpeg/receipt Mon Feb 27 09:07:28 2023 +0000 7.2 +++ b/lua5.1-lpeg/receipt Mon Feb 27 10:05:50 2023 +0000 7.3 @@ -16,6 +16,13 @@ 7.4 SUGGESTED="lua5.1" 7.5 BUILD_DEPENDS="lua5.1-dev" 7.6 7.7 +# What is the latest version available today? 7.8 +current_version() 7.9 +{ 7.10 + wget -O - $WEB_SITE 2>/dev/null | \ 7.11 + sed '/tar.gz/!d;s|.*lpeg-||;s|.tar.*||' 7.12 +} 7.13 + 7.14 # Rules to configure and make the package. 7.15 compile_rules() 7.16 {
8.1 --- a/lua5.1-mpack/receipt Mon Feb 27 09:07:28 2023 +0000 8.2 +++ b/lua5.1-mpack/receipt Mon Feb 27 10:05:50 2023 +0000 8.3 @@ -17,6 +17,13 @@ 8.4 DEPENDS="libmpack" 8.5 BUILD_DEPENDS="libmpack-dev lua5.1 lua5.1-dev" 8.6 8.7 +# What is the latest version available today? 8.8 +current_version() 8.9 +{ 8.10 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 8.11 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 8.12 +} 8.13 + 8.14 # Rules to configure and make the package. 8.15 compile_rules() 8.16 {
9.1 --- a/neovim/receipt Mon Feb 27 09:07:28 2023 +0000 9.2 +++ b/neovim/receipt Mon Feb 27 10:05:50 2023 +0000 9.3 @@ -21,6 +21,13 @@ 9.4 9.5 CONFIG_FILES="/usr/share/nvim/sysinit.vim" 9.6 9.7 +# What is the latest version available today? 9.8 +current_version() 9.9 +{ 9.10 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 9.11 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 9.12 +} 9.13 + 9.14 # Rules to configure and make the package. 9.15 compile_rules() 9.16 {
10.1 --- a/tree-sitter/receipt Mon Feb 27 09:07:28 2023 +0000 10.2 +++ b/tree-sitter/receipt Mon Feb 27 10:05:50 2023 +0000 10.3 @@ -11,6 +11,13 @@ 10.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 10.5 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" 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|.*/v*\(.*\).tar.*|\1|;q' 10.12 +} 10.13 + 10.14 # Rules to configure and make the package. 10.15 compile_rules() 10.16 {
11.1 --- a/unibilium/receipt Mon Feb 27 09:07:28 2023 +0000 11.2 +++ b/unibilium/receipt Mon Feb 27 10:05:50 2023 +0000 11.3 @@ -14,6 +14,13 @@ 11.4 11.5 BUILD_DEPENDS="libtool perl" 11.6 11.7 +# What is the latest version available today? 11.8 +current_version() 11.9 +{ 11.10 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 11.11 + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' 11.12 +} 11.13 + 11.14 # Rules to configure and make the package. 11.15 compile_rules() 11.16 {