wok diff abiword/receipt @ rev 24614

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:04:14 2022 +0000 (2022-03-06)
parents fb22330086d8
children aba2c5ca9a66
line diff
     1.1 --- a/abiword/receipt	Sun Feb 06 16:04:43 2022 +0000
     1.2 +++ b/abiword/receipt	Sun Mar 06 21:04:14 2022 +0000
     1.3 @@ -24,10 +24,11 @@
     1.4  # What is the latest version available today?
     1.5  current_version()
     1.6  {
     1.7 -	wget -O - http://www.abisource.com/downloads/abiword/$( \ 
     1.8  	wget -O - http://www.abisource.com/downloads/abiword/ 2>/dev/null | \
     1.9 -	sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]*\\)/.*|\\1|" | sort -Vr | sed q)/source/ 2>/dev/null | \
    1.10 +	sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]*\\)/.*|http://www.abisource.com/downloads/abiword/\\1/source/|" | sort -Vr | sed q > /tmp/url$$
    1.11 +	cat /tmp/url$$ | xargs wget -O - 2>/dev/null | \
    1.12  	sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.13 +	rm -f /tmp/url$$
    1.14  }
    1.15  
    1.16  # Rules to configure and make the package.