wok-next annotate uclibc-cross-compiler-x86_64/receipt @ rev 20557
Remove *.la files.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 07 16:01:14 2018 +0300 (2018-04-07) |
parents | 4a3d5fd3ab81 |
children | 8e1b2a143eb3 |
rev | line source |
---|---|
pascal@20147 | 1 # SliTaz package receipt v2. |
pascal@11673 | 2 |
pascal@11673 | 3 PACKAGE="uclibc-cross-compiler-x86_64" |
pascal@11673 | 4 VERSION="prebuilt" |
pascal@11673 | 5 CATEGORY="development" |
al@20557 | 6 SHORT_DESC="Uclibc toolchain" |
pascal@11673 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14781 | 8 LICENSE="GPL2" |
al@20557 | 9 WEB_SITE="http://impactlinux.com/aboriginal" |
al@20557 | 10 |
pascal@11673 | 11 SOURCE="cross-compiler-x86_64" |
pascal@11673 | 12 TARBALL="$SOURCE.tar.bz2" |
pascal@11673 | 13 WGET_URL="$WEB_SITE/downloads/binaries/cross-compiler/$TARBALL" |
al@20557 | 14 |
pascal@20149 | 15 COOKOPTS="!strip" |
pascal@11673 | 16 |
pascal@20147 | 17 SPLIT="uclibc-armv4eb uclibc-armv4l uclibc-armv4tl uclibc-armv5l uclibc-armv6l \ |
pascal@20147 | 18 uclibc-cross-compiler-armv4eb uclibc-cross-compiler-armv4l \ |
pascal@20147 | 19 uclibc-cross-compiler-armv4tl uclibc-cross-compiler-armv5l \ |
pascal@20147 | 20 uclibc-cross-compiler-armv6l uclibc-cross-compiler-i486 \ |
pascal@20147 | 21 uclibc-cross-compiler-mips uclibc-cross-compiler-mips64 \ |
pascal@20147 | 22 uclibc-cross-compiler-mipsel uclibc-cross-compiler-powerpc \ |
pascal@20147 | 23 uclibc-cross-compiler-sh4 uclibc-cross-compiler-sparc \ |
pascal@20147 | 24 uclibc-cross-compiler-x86_64 uclibc-i486 uclibc-mips uclibc-mips64 \ |
pascal@20147 | 25 uclibc-mipsel uclibc-powerpc uclibc-sh4 uclibc-sparc uclibc-x86_64" |
pascal@20147 | 26 |
al@20557 | 27 compile_rules() { |
pascal@20147 | 28 for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \ |
pascal@20155 | 29 -e 's/ uclibc-[^ ]*//g'); do |
al@20513 | 30 [ -s $SRC/${TARBALL/x86_64/$i} ] || |
al@20513 | 31 wget -P $SRC ${WGET_URL/x86_64/$i} |
al@20513 | 32 busybox tar xf $SRC/${TARBALL/x86_64/$i} |
pascal@20147 | 33 done |
pascal@20520 | 34 ln -s $src $install |
al@20557 | 35 chown -R root:root $install |
pascal@20147 | 36 } |
pascal@11825 | 37 |
al@20557 | 38 genpkg_rules() { |
pascal@20147 | 39 case $PACKAGE in |
al@20557 | 40 uclibc-cross-compiler-*) |
al@20557 | 41 CAT="development|for uclibc/${PACKAGE##*-}" |
al@20557 | 42 SUGGESTED="uclibc-${PACKAGE##*-}" |
al@20557 | 43 mkdir -p \ |
al@20557 | 44 $fs/usr/share/$PACKAGE \ |
al@20557 | 45 $fs/usr/bin |
al@20557 | 46 cp -a $install/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/ |
al@20557 | 47 for i in $(cd $install/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do |
al@20557 | 48 file=$(basename $i) |
al@20557 | 49 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file |
al@20557 | 50 done |
al@20557 | 51 ;; |
al@20557 | 52 uclibc-*) |
al@20557 | 53 CAT="base-system|UcLibc ${PACKAGE##*-} libraries" |
al@20557 | 54 mkdir -p $fs/lib |
al@20557 | 55 cp -a $install/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib |
al@20557 | 56 ;; |
pascal@20147 | 57 esac |
al@20557 | 58 TAGS="compiler C" |
pascal@20147 | 59 } |
pascal@20147 | 60 |
al@20557 | 61 post_install_uclibc_i486() { |
pascal@20147 | 62 echo chroot "$1/" /usr/bin/uclibc-i486-ldconfig |
pascal@20147 | 63 } |
pascal@20147 | 64 |
al@20557 | 65 pre_remove_uclibc_i486() { |
pascal@20147 | 66 for i in /lib/ld-uClibc.so*; do |
pascal@20147 | 67 case "$(readlink $i)" in |
al@20557 | 68 *usr/share/uclibc_i486/lib/*) rm -f $i;; |
pascal@20147 | 69 esac |
pascal@11673 | 70 done |
pascal@11673 | 71 } |