wok-current diff mongodb/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 | 08c52f1e528e |
children | 180119c209e8 |
line diff
1.1 --- a/mongodb/receipt Fri Jan 17 10:47:57 2020 +0100 1.2 +++ b/mongodb/receipt Sun Mar 13 12:06:14 2022 +0000 1.3 @@ -17,6 +17,13 @@ 1.4 libboost-program-options-dev libboost-thread-dev pcre-dev \ 1.5 scons spidermonkey-dev" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://github.com/mongodb/mongo/tags 2>/dev/null | \ 1.11 + sed '/archive.*tar/!d;/-rc/d;/-alpha/d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {