wok diff dokuwiki/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents ad081b892543
children 8d83e2a77e2f
line diff
     1.1 --- a/dokuwiki/receipt	Wed Feb 20 16:20:24 2019 +0100
     1.2 +++ b/dokuwiki/receipt	Fri Feb 18 22:59:06 2022 +0000
     1.3 @@ -11,6 +11,13 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tgz"
     1.5  WGET_URL="http://download.dokuwiki.org/src/$PACKAGE/$PACKAGE-2018-04-22b.tgz"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://github.com/splitbrain/dokuwiki/tags 2>/dev/null | \
    1.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|.*stable_||;s|-||g;q'
    1.12 +}
    1.13 +
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {