wok rev 24844

libunibreak: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 25 09:14:23 2022 +0000 (2022-03-25)
parents bc4acb77e841
children 8d89d0298bca
files libunibreak/receipt
line diff
     1.1 --- a/libunibreak/receipt	Fri Mar 25 09:52:38 2022 +0100
     1.2 +++ b/libunibreak/receipt	Fri Mar 25 09:14:23 2022 +0000
     1.3 @@ -13,6 +13,13 @@
     1.4  
     1.5  #SPLIT="$PACKAGE-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    1.11 +	sed '/archive.*tar/!d;s|.*/[a-z_]*\(.*\).tar.*|\1|;s|_|.|g;q'
    1.12 +}
    1.13 +
    1.14  compile_rules()
    1.15  {
    1.16  	./configure $CONFIGURE_ARGS &&