wok diff macchanger/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | 9b3e5f996086 |
children | 7364ffdaaa60 |
line diff
1.1 --- a/macchanger/receipt Fri May 24 19:05:22 2019 +0200 1.2 +++ b/macchanger/receipt Thu Jun 22 11:01:59 2023 +0000 1.3 @@ -11,6 +11,12 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WGET_URL="https://github.com/alobbs/$PACKAGE/releases/download/$VERSION/$TARBALL" 1.6 1.7 +current_version() 1.8 +{ 1.9 + wget -O - ${WGET_URL%/down*} 2>/dev/null | \ 1.10 + sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' 1.11 +} 1.12 + 1.13 # Rules to configure and make the package. 1.14 compile_rules() 1.15 {