wok diff cryptopp/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | 29af9ccd87db |
children | c644ecfbd345 |
line diff
1.1 --- a/cryptopp/receipt Mon Mar 09 18:50:16 2020 +0100 1.2 +++ b/cryptopp/receipt Sat Feb 12 18:42:31 2022 +0000 1.3 @@ -8,9 +8,16 @@ 1.4 LICENSE="MIT PublicDomain" 1.5 WEB_SITE="https://www.cryptopp.com" 1.6 1.7 -TARBALL="${PACKAGE}800.zip" 1.8 +TARBALL="${PACKAGE}${VERSION//./}.zip" 1.9 WGET_URL="$WEB_SITE/$TARBALL" 1.10 1.11 +# What is the latest version available today? 1.12 +current_version() 1.13 +{ 1.14 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.15 + sed '/cryptopp[0-9]*.zip/!d;s|.*cryptopp\(.*\).zip.*|\1|;s|.|&.|g;s|.$||' | sort -Vr | sed q 1.16 +} 1.17 + 1.18 # Rules to configure and make the package. 1.19 compile_rules() 1.20 {