wok-current diff grub2/receipt @ rev 24569
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 18:46:53 2022 +0000 (2022-02-26) |
parents | 3260e959c015 |
children | 72f2704d3ae0 |
line diff
1.1 --- a/grub2/receipt Sun Jun 20 14:41:40 2021 +0100 1.2 +++ b/grub2/receipt Sat Feb 26 18:46:53 2022 +0000 1.3 @@ -10,7 +10,7 @@ 1.4 1.5 SOURCE="grub" 1.6 TARBALL="$SOURCE-$VERSION.tar.xz" 1.7 -WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL" 1.8 +WGET_URL="http://ftp.gnu.org/gnu/grub/$TARBALL" 1.9 1.10 DEPENDS="freetype grep libdevmapper libusb libusb-compat ncurses zlib" 1.11 BUILD_DEPENDS="bison flex freetype-dev fuse-dev libdevmapper-dev 1.12 @@ -20,6 +20,13 @@ 1.13 1.14 SUGGESTED="os-prober" 1.15 1.16 +# What is the latest version available today? 1.17 +current_version() 1.18 +{ 1.19 + wget -O - ${WGET_URL%/*} 2>/dev/null | \ 1.20 + sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q 1.21 +} 1.22 + 1.23 # Rules to configure and make the package. 1.24 compile_rules() 1.25 {