wok diff docbook-xsl-ns/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents 3cda55aed22c
children d79ed38ace18
line diff
     1.1 --- a/docbook-xsl-ns/receipt	Fri Feb 21 11:18:56 2020 +0100
     1.2 +++ b/docbook-xsl-ns/receipt	Sun Feb 13 18:01:32 2022 +0000
     1.3 @@ -13,6 +13,14 @@
     1.4  
     1.5  DEPENDS="libxml2-tools libxslt"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/ 2>/dev/null | \
    1.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    1.12 +	sed '/scope="row/!d;s|.*/docbook-xsl-ns/||;s|/.*||;q'
    1.13 +}
    1.14 +
    1.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.16  genpkg_rules()
    1.17  {