wok-next rev 20148

uclibc-cross-compiler-x86_64: receipt v2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 13:41:29 2017 +0100 (2017-11-01)
parents 2b3f4f48a34b
children 6fb955a47552
files uclibc-cross-compiler-x86_64/receipt
line diff
     1.1 --- a/uclibc-cross-compiler-x86_64/receipt	Wed Nov 01 13:32:31 2017 +0100
     1.2 +++ b/uclibc-cross-compiler-x86_64/receipt	Wed Nov 01 13:41:29 2017 +0100
     1.3 @@ -25,14 +25,12 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	ln -s . uclibc-cross-compiler-x86_64
     1.8 +	ln -s . cross-compiler-x86_64
     1.9  	for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \
    1.10  		   	-e 's/ uclibc-[^ ]*//g' -e 's/ x86_64//'); do
    1.11  		[ -s $SOURCES_REPOSITORY/${TARBALL/x86_64/$i} ] ||
    1.12  			 wget -P $SOURCES_REPOSITORY ${WGET_URL/x86_64/$i}
    1.13 -		mkdir uclibc-cross-compiler-$i
    1.14 -		busybox tar xf $SOURCES_REPOSITORY/${TARBALL/x86_64/$i} \
    1.15 -			-C uclibc-cross-compiler-$i
    1.16 +		busybox tar xf $SOURCES_REPOSITORY/${TARBALL/x86_64/$i}
    1.17  	done
    1.18  }
    1.19  
    1.20 @@ -44,8 +42,8 @@
    1.21  		CAT="development|Toolchain for uclibc/${PACKAGE##*-}."
    1.22  		SUGGESTED="uclibc-${PACKAGE##*-}"
    1.23  		mkdir -p $fs/usr/share $fs/usr/bin
    1.24 -		cp -a $src/$PACKAGE $fs/usr/share/$PACKAGE
    1.25 -		for i in $(cd $src/$PACKAGE ; ls bin/${PACKAGE##*-}-*); do
    1.26 +		cp -a $src/cross-compiler-${PACKAGE##*-} $fs/usr/share/$PACKAGE
    1.27 +		for i in $(cd $src/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do
    1.28  			file=$(basename $i)
    1.29  			ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
    1.30  		done
    1.31 @@ -54,7 +52,7 @@
    1.32  		TAZBB_NO_INSTALL="because this is not the right target !"
    1.33  		CAT="base-system|UcLibc ${PACKAGE##*-} libraries."
    1.34  		mkdir -p $fs/lib
    1.35 -		cp -a $src/${PACKAGE/cross-compiler-/}/lib/*.so* $fs/lib
    1.36 +		cp -a $src/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib
    1.37  		;;
    1.38  	esac
    1.39  }