wok-6.x diff abiword/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents dcaa989c1de7
children 88afc2f95640
line diff
     1.1 --- a/abiword/receipt	Sat Mar 30 15:08:35 2019 +0100
     1.2 +++ b/abiword/receipt	Thu Feb 03 12:55:23 2022 +0000
     1.3 @@ -21,6 +21,16 @@
     1.4  enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
     1.5  SUGGESTED="abiword-plugins"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - http://www.abisource.com/downloads/abiword/$( \ 
    1.11 +	wget -O - http://www.abisource.com/downloads/abiword/ 2>/dev/null | \
    1.12 +	sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]\\)/.*|\\1|" | sort -Vr | sed q)/source/ 2>/dev/null | \
    1.13 +	sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.14 +}
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {