wok-next diff uclibc-cross-compiler-x86_64/receipt @ rev 20908

bzip2: update home page and source URL (thanks shann); domain bzip.org is suspended now...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 12 04:53:45 2018 +0300 (2018-08-12)
parents 4a3d5fd3ab81
children 8e1b2a143eb3
line diff
     1.1 --- a/uclibc-cross-compiler-x86_64/receipt	Fri Mar 23 09:47:21 2018 +0100
     1.2 +++ b/uclibc-cross-compiler-x86_64/receipt	Sun Aug 12 04:53:45 2018 +0300
     1.3 @@ -3,15 +3,16 @@
     1.4  PACKAGE="uclibc-cross-compiler-x86_64"
     1.5  VERSION="prebuilt"
     1.6  CATEGORY="development"
     1.7 -SHORT_DESC="Toolchain for uclibc/x86_64."
     1.8 +SHORT_DESC="Uclibc toolchain"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 +WEB_SITE="http://impactlinux.com/aboriginal"
    1.12 +
    1.13  SOURCE="cross-compiler-x86_64"
    1.14  TARBALL="$SOURCE.tar.bz2"
    1.15 -WEB_SITE="http://impactlinux.com/aboriginal"
    1.16  WGET_URL="$WEB_SITE/downloads/binaries/cross-compiler/$TARBALL"
    1.17 +
    1.18  COOKOPTS="!strip"
    1.19 -TAGS="compiler C"
    1.20  
    1.21  SPLIT="uclibc-armv4eb uclibc-armv4l uclibc-armv4tl uclibc-armv5l uclibc-armv6l \
    1.22  uclibc-cross-compiler-armv4eb uclibc-cross-compiler-armv4l \
    1.23 @@ -23,9 +24,7 @@
    1.24  uclibc-cross-compiler-x86_64 uclibc-i486 uclibc-mips uclibc-mips64 \
    1.25  uclibc-mipsel uclibc-powerpc uclibc-sh4 uclibc-sparc uclibc-x86_64"
    1.26  
    1.27 -# Rules to configure and make the package.
    1.28 -compile_rules()
    1.29 -{
    1.30 +compile_rules() {
    1.31  	for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \
    1.32  		   	-e 's/ uclibc-[^ ]*//g'); do
    1.33  		[ -s $SRC/${TARBALL/x86_64/$i} ] ||
    1.34 @@ -33,42 +32,40 @@
    1.35  		busybox tar xf $SRC/${TARBALL/x86_64/$i}
    1.36  	done
    1.37  	ln -s $src $install
    1.38 +	chown -R root:root $install
    1.39  }
    1.40  
    1.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 -genpkg_rules()
    1.43 -{
    1.44 +genpkg_rules() {
    1.45  	case $PACKAGE in
    1.46 -	uclibc-cross-compiler-*)
    1.47 -		CAT="development|Toolchain for uclibc/${PACKAGE##*-}."
    1.48 -		SUGGESTED="uclibc-${PACKAGE##*-}"
    1.49 -		mkdir -p $fs/usr/share/$PACKAGE $fs/usr/bin
    1.50 -		cp -a $install/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/
    1.51 -		for i in $(cd $install/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do
    1.52 -			file=$(basename $i)
    1.53 -			ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
    1.54 -		done
    1.55 -		;;
    1.56 -	uclibc-*)
    1.57 -		TAZBB_NO_INSTALL="because this is not the right target !"
    1.58 -		CAT="base-system|UcLibc ${PACKAGE##*-} libraries."
    1.59 -		mkdir -p $fs/lib
    1.60 -		cp -a $install/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib
    1.61 -		;;
    1.62 +		uclibc-cross-compiler-*)
    1.63 +			CAT="development|for uclibc/${PACKAGE##*-}"
    1.64 +			SUGGESTED="uclibc-${PACKAGE##*-}"
    1.65 +			mkdir -p \
    1.66 +				$fs/usr/share/$PACKAGE \
    1.67 +				$fs/usr/bin
    1.68 +			cp -a $install/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/
    1.69 +			for i in $(cd $install/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do
    1.70 +				file=$(basename $i)
    1.71 +				ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
    1.72 +			done
    1.73 +			;;
    1.74 +		uclibc-*)
    1.75 +			CAT="base-system|UcLibc ${PACKAGE##*-} libraries"
    1.76 +			mkdir -p $fs/lib
    1.77 +			cp -a $install/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib
    1.78 +			;;
    1.79  	esac
    1.80 +	TAGS="compiler C"
    1.81  }
    1.82  
    1.83 -# Pre and post install commands for Tazpkg.
    1.84 -post_install_uclibc_i486()
    1.85 -{
    1.86 +post_install_uclibc_i486() {
    1.87  	echo chroot "$1/" /usr/bin/uclibc-i486-ldconfig
    1.88  }
    1.89  
    1.90 -pre_remove_uclibc_i486()
    1.91 -{
    1.92 +pre_remove_uclibc_i486() {
    1.93  	for i in /lib/ld-uClibc.so*; do
    1.94  		case "$(readlink $i)" in
    1.95 -		*usr/share/uclibc_i486/lib/*) rm -f $i ;;
    1.96 +			*usr/share/uclibc_i486/lib/*) rm -f $i;;
    1.97  		esac
    1.98  	done
    1.99  }