wok diff cyrus-imapd/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | c265f9cf4b14 |
children | e8070450126d |
line diff
1.1 --- a/cyrus-imapd/receipt Tue Mar 31 10:49:33 2020 +0200 1.2 +++ b/cyrus-imapd/receipt Sun Feb 13 13:09:42 2022 +0000 1.3 @@ -18,6 +18,13 @@ 1.4 1.5 CONFIG_FILES="/etc/imapd.conf /etc/cyrus.conf" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://github.com/cyrusimap/cyrus-imapd/releases 2>/dev/null | \ 1.11 + sed '/archive.*tar/!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 {