wok-current diff raspberrypi-vc/receipt @ rev 24694
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 12:06:14 2022 +0000 (2022-03-13) |
parents | 1067bb7f1e24 |
children | 8ea0030e77cb |
line diff
1.1 --- a/raspberrypi-vc/receipt Wed Dec 16 15:49:50 2015 +0100 1.2 +++ b/raspberrypi-vc/receipt Sun Mar 13 12:06:14 2022 +0000 1.3 @@ -16,6 +16,13 @@ 1.4 1.5 BUILD_DEPENDS="wget" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://github.com/raspberrypi/firmware/tags 2>/dev/null | \ 1.11 + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' 1.12 +} 1.13 + 1.14 # Cross tool PATH is not set in genpkg_rules 1.15 compile_rules() 1.16 {