wok diff h8300-binutils/receipt @ rev 25386

updated unrar (5.9.2 -> 6.1.7)
author Hans-G?nter Theisgen
date Sat Jul 30 17:51:49 2022 +0100 (2022-07-30)
parents 051931e905b0
children d79ed38ace18
line diff
     1.1 --- a/h8300-binutils/receipt	Fri Dec 06 10:39:07 2013 +0000
     1.2 +++ b/h8300-binutils/receipt	Sat Jul 30 17:51:49 2022 +0100
     1.3 @@ -14,15 +14,25 @@
     1.4  
     1.5  BUILD_DEPENDS="slitaz-toolchain bison flex"
     1.6  
     1.7 -# Configuration only needs included if we're in the build/wok environment
     1.8 -if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
     1.9 -	. $WOK/h8300-toolchain/stuff/h8300.conf
    1.10 -fi
    1.11 +# What is the latest version available today?
    1.12 +current_version()
    1.13 +{
    1.14 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.15 +	sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.16 +}
    1.17 +
    1.18 +h8300_conf()
    1.19 +{
    1.20 +	# Configuration only needs included if we're in the build/wok environment
    1.21 +	if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
    1.22 +		. $WOK/h8300-toolchain/stuff/h8300.conf
    1.23 +	fi
    1.24 +}
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	cd $src
    1.30 +	h8300_conf
    1.31  	./configure \
    1.32  		--target=$H8300_TARGET \
    1.33  		--prefix=/usr \
    1.34 @@ -37,6 +47,7 @@
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 +	h8300_conf
    1.39  	mkdir -p $fs/usr $fs$H8300_ROOT
    1.40  	cp -a $install/usr/bin $fs/usr
    1.41  	cp -a $install/usr/$H8300_TARGET/* $fs$H8300_ROOT