wok diff dhid/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 429355d87af5
children bc2b9d9bed6f
line diff
     1.1 --- a/dhid/receipt	Thu Apr 24 14:08:25 2014 +0200
     1.2 +++ b/dhid/receipt	Sun Feb 13 18:01:32 2022 +0000
     1.3 @@ -15,6 +15,13 @@
     1.4  DEPENDS="gmp"
     1.5  BUILD_DEPENDS="gmp-dev"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    1.11 +	sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Handle cross comilation
    1.15  case "$ARCH" in
    1.16  	arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;;