wok-6.x diff cpuspeed/receipt @ rev 25499
Up whois (5.5.14)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 22 13:03:20 2022 +0000 (2022-12-22) |
parents | a78610b2eb47 |
children |
line diff
1.1 --- a/cpuspeed/receipt Mon Jan 21 12:26:11 2019 +0100 1.2 +++ b/cpuspeed/receipt Thu Dec 22 13:03:20 2022 +0000 1.3 @@ -12,11 +12,18 @@ 1.4 WGET_URL="https://www.carlthompson.net/downloads/$PACKAGE/$TARBALL" 1.5 TAGS="power-management" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.11 + sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 - 1.16 -compile_rules() { 1.17 - cd $src 1.18 - make 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + make 1.23 } 1.24 1.25 # Rules to gen a SliTaz package suitable for Tazpkg.