wok diff h8300-gdb/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents dead8955c3ca
children 5f6c5106b1f5
line diff
     1.1 --- a/h8300-gdb/receipt	Wed Sep 25 09:50:51 2013 +0000
     1.2 +++ b/h8300-gdb/receipt	Fri Jan 28 18:19:21 2022 +0000
     1.3 @@ -19,9 +19,20 @@
     1.4  	. $WOK/h8300-toolchain/stuff/h8300.conf
     1.5  fi
     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-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.12 +}
    1.13 +
    1.14  # Rules to configure and make the package.
    1.15  compile_rules()
    1.16  {
    1.17 +	# Configuration only needs included if we're in the build/wok environment
    1.18 +	if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
    1.19 +		. $WOK/h8300-toolchain/stuff/h8300.conf
    1.20 +	fi
    1.21  	mkdir -p $SOURCE-$VERSION-build
    1.22  	cd $SOURCE-$VERSION-build
    1.23  	$src/configure \