wok-current diff grub/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents 0c1ad897a405
children 87f1b8852b4c
line diff
     1.1 --- a/grub/receipt	Thu Mar 01 10:11:27 2018 +0100
     1.2 +++ b/grub/receipt	Thu Feb 10 18:04:02 2022 +0000
     1.3 @@ -8,11 +8,18 @@
     1.4  LICENSE="GPL2"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.6  WEB_SITE="http://www.gnu.org/software/grub/"
     1.7 -WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
     1.8 +WGET_URL="http://alpha.gnu.org/gnu/grub/$TARBALL"
     1.9  CONFIG_FILES="/boot/grub"
    1.10  
    1.11  BUILD_DEPENDS="gcc3"
    1.12  
    1.13 +# What is the latest version available today?
    1.14 +current_version()
    1.15 +{
    1.16 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.17 +	sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
    1.18 +}
    1.19 +
    1.20  # Rules to configure and make the package.
    1.21  compile_rules()
    1.22  {