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