wok diff fpc-bootstrap/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 a78610b2eb47
children 8f37db468deb
line diff
     1.1 --- a/fpc-bootstrap/receipt	Mon Jan 21 12:26:11 2019 +0100
     1.2 +++ b/fpc-bootstrap/receipt	Sun Feb 13 18:01:32 2022 +0000
     1.3 @@ -24,6 +24,13 @@
     1.4  		;;
     1.5  esac
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://gitlab.com/freepascal.org/fpc/source/-/tags 2>/dev/null | \
    1.11 +	sed '/-\/tags\/[a-z_]*[0-9]/!d;/_rc/d;s|.*tags/[a-z_]*||;s|".*||;s|_|.|g;q'
    1.12 +}
    1.13 +
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {