wok diff gc/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents f96e26cdfd7a
children 00e3b45c063b
line diff
     1.1 --- a/gc/receipt	Sat Aug 08 16:48:38 2020 +0000
     1.2 +++ b/gc/receipt	Mon Jan 17 18:18:17 2022 +0000
     1.3 @@ -7,10 +7,17 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="MIT GPL"
     1.6  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.7 -WEB_SITE="https://github.com/ivmai/bdwgc/"
     1.8 +WEB_SITE="https://github.com/ivmai/bdwgc"
     1.9  WGET_URL="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$TARBALL"
    1.10  HOST_ARCH="i486 arm"
    1.11  
    1.12 +# What is the latest version available today?
    1.13 +current_version()
    1.14 +{
    1.15 +	wget -O - $WEB_SITE/releases 2>/dev/null | \
    1.16 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    1.17 +}
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {