wok diff cryptopp/receipt @ rev 25775
luajit, wayland, weston: fix current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 15 16:55:07 2024 +0000 (5 months ago) |
parents | c644ecfbd345 |
children |
line diff
1.1 --- a/cryptopp/receipt Mon Feb 14 07:50:21 2022 +0100 1.2 +++ b/cryptopp/receipt Sun Sep 15 16:55:07 2024 +0000 1.3 @@ -6,16 +6,16 @@ 1.4 SHORT_DESC="C++ class library of cryptographic schemes." 1.5 MAINTAINER="pankso@slitaz.org" 1.6 LICENSE="MIT PublicDomain" 1.7 -WEB_SITE="https://www.cryptopp.com" 1.8 +WEB_SITE="https://github.com/weidai11/cryptopp" 1.9 1.10 TARBALL="${PACKAGE}${VERSION//./}.zip" 1.11 -WGET_URL="$WEB_SITE/$TARBALL" 1.12 +WGET_URL="$WEB_SITE/releases/download/CRYPTOPP_${VERSION//./_}/$TARBALL" 1.13 1.14 # What is the latest version available today? 1.15 current_version() 1.16 { 1.17 - wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.18 - sed '/cryptopp[0-9]*.zip/!d;s|.*cryptopp\(.*\).zip.*|\1|;s|.|&.|g;s|.$||' | sort -Vr | sed q 1.19 + wget -O - $WEB_SITE/releases 2>/dev/null | \ 1.20 + sed '/tag\//!d;s|.*CRYPTOPP_||;s|".*||;s|_|.|g;q' 1.21 } 1.22 1.23 # Rules to configure and make the package.