wok-next annotate uclibc-cross-compiler-x86_64/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | f519d11fc2cb |
children | 4a3d5fd3ab81 |
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" |
pascal@11673 | 6 SHORT_DESC="Toolchain for uclibc/x86_64." |
pascal@11673 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14781 | 8 LICENSE="GPL2" |
pascal@11673 | 9 SOURCE="cross-compiler-x86_64" |
pascal@11673 | 10 TARBALL="$SOURCE.tar.bz2" |
pascal@11673 | 11 WEB_SITE="http://impactlinux.com/aboriginal" |
pascal@11673 | 12 WGET_URL="$WEB_SITE/downloads/binaries/cross-compiler/$TARBALL" |
pascal@20149 | 13 COOKOPTS="!strip" |
pascal@13033 | 14 TAGS="compiler C" |
pascal@11673 | 15 |
pascal@20147 | 16 SPLIT="uclibc-armv4eb uclibc-armv4l uclibc-armv4tl uclibc-armv5l uclibc-armv6l \ |
pascal@20147 | 17 uclibc-cross-compiler-armv4eb uclibc-cross-compiler-armv4l \ |
pascal@20147 | 18 uclibc-cross-compiler-armv4tl uclibc-cross-compiler-armv5l \ |
pascal@20147 | 19 uclibc-cross-compiler-armv6l uclibc-cross-compiler-i486 \ |
pascal@20147 | 20 uclibc-cross-compiler-mips uclibc-cross-compiler-mips64 \ |
pascal@20147 | 21 uclibc-cross-compiler-mipsel uclibc-cross-compiler-powerpc \ |
pascal@20147 | 22 uclibc-cross-compiler-sh4 uclibc-cross-compiler-sparc \ |
pascal@20147 | 23 uclibc-cross-compiler-x86_64 uclibc-i486 uclibc-mips uclibc-mips64 \ |
pascal@20147 | 24 uclibc-mipsel uclibc-powerpc uclibc-sh4 uclibc-sparc uclibc-x86_64" |
pascal@20147 | 25 |
pascal@20147 | 26 # Rules to configure and make the package. |
pascal@20147 | 27 compile_rules() |
pascal@20147 | 28 { |
pascal@20147 | 29 for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \ |
pascal@20155 | 30 -e 's/ uclibc-[^ ]*//g'); do |
al@20513 | 31 [ -s $SRC/${TARBALL/x86_64/$i} ] || |
al@20513 | 32 wget -P $SRC ${WGET_URL/x86_64/$i} |
al@20513 | 33 busybox tar xf $SRC/${TARBALL/x86_64/$i} |
pascal@20147 | 34 done |
pascal@20147 | 35 } |
pascal@11825 | 36 |
pascal@11673 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11673 | 38 genpkg_rules() |
pascal@11673 | 39 { |
pascal@20147 | 40 case $PACKAGE in |
pascal@20147 | 41 uclibc-cross-compiler-*) |
pascal@20147 | 42 CAT="development|Toolchain for uclibc/${PACKAGE##*-}." |
pascal@20147 | 43 SUGGESTED="uclibc-${PACKAGE##*-}" |
pascal@20151 | 44 mkdir -p $fs/usr/share/$PACKAGE $fs/usr/bin |
pascal@20151 | 45 cp -a $src/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/ |
pascal@20148 | 46 for i in $(cd $src/cross-compiler-${PACKAGE##*-} ; ls bin/${PACKAGE##*-}-*); do |
pascal@20147 | 47 file=$(basename $i) |
pascal@20147 | 48 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file |
pascal@20147 | 49 done |
pascal@20147 | 50 ;; |
pascal@20147 | 51 uclibc-*) |
pascal@20147 | 52 TAZBB_NO_INSTALL="because this is not the right target !" |
pascal@20147 | 53 CAT="base-system|UcLibc ${PACKAGE##*-} libraries." |
pascal@20147 | 54 mkdir -p $fs/lib |
pascal@20148 | 55 cp -a $src/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib |
pascal@20147 | 56 ;; |
pascal@20147 | 57 esac |
pascal@20147 | 58 } |
pascal@20147 | 59 |
pascal@20147 | 60 # Pre and post install commands for Tazpkg. |
pascal@20147 | 61 post_install_uclibc_i486() |
pascal@20147 | 62 { |
pascal@20147 | 63 echo chroot "$1/" /usr/bin/uclibc-i486-ldconfig |
pascal@20147 | 64 } |
pascal@20147 | 65 |
pascal@20147 | 66 pre_remove_uclibc_i486() |
pascal@20147 | 67 { |
pascal@20147 | 68 for i in /lib/ld-uClibc.so*; do |
pascal@20147 | 69 case "$(readlink $i)" in |
pascal@20147 | 70 *usr/share/uclibc_i486/lib/*) rm -f $i ;; |
pascal@20147 | 71 esac |
pascal@11673 | 72 done |
pascal@11673 | 73 } |