wok-next view uclibc-cross-compiler-x86_64/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 8e1b2a143eb3 |
children |
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="https://web.archive.org/web/20101022004153/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="\
18 uclibc-armv4eb uclibc-cross-compiler-armv4eb \
19 uclibc-armv4l uclibc-cross-compiler-armv4l \
20 uclibc-armv4tl uclibc-cross-compiler-armv4tl \
21 uclibc-armv5l uclibc-cross-compiler-armv5l \
22 uclibc-armv6l uclibc-cross-compiler-armv6l \
23 uclibc-i486 uclibc-cross-compiler-i486 \
24 uclibc-mips uclibc-cross-compiler-mips \
25 uclibc-mips64 uclibc-cross-compiler-mips64 \
26 uclibc-mipsel uclibc-cross-compiler-mipsel \
27 uclibc-powerpc uclibc-cross-compiler-powerpc \
28 uclibc-sh4 uclibc-cross-compiler-sh4 \
29 uclibc-sparc uclibc-cross-compiler-sparc \
30 uclibc-x86_64 uclibc-cross-compiler-x86_64"
32 compile_rules() {
33 for i in $(echo " $SPLIT" | sed -e 's/uclibc-cross-compiler-//g' \
34 -e 's/ uclibc-[^ ]*//g'); do
35 [ -s $SRC/${TARBALL/x86_64/$i} ] ||
36 wget -P $SRC ${WGET_URL/x86_64/$i}
37 busybox tar xf $SRC/${TARBALL/x86_64/$i}
38 done
39 ln -s $src $install
40 chown -R root:root $install
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 uclibc-cross-compiler-*)
46 CAT="development|for uclibc/${PACKAGE##*-}"
47 SUGGESTED="uclibc-${PACKAGE##*-}"
48 mkdir -p \
49 $fs/usr/share/$PACKAGE \
50 $fs/usr/bin
51 cp -a $install/cross-compiler-${PACKAGE##*-}/. $fs/usr/share/$PACKAGE/
52 for i in $(cd $install/cross-compiler-${PACKAGE##*-}; ls bin/${PACKAGE##*-}-*); do
53 file=$(basename $i)
54 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
55 done
56 ;;
57 uclibc-*)
58 CAT="base-system|UcLibc ${PACKAGE##*-} libraries"
59 mkdir -p $fs/lib
60 cp -a $install/cross-compiler-${PACKAGE##*-}/lib/*.so* $fs/lib
61 ;;
62 esac
63 TAGS="compiler C"
64 }
66 post_install_uclibc_i486() {
67 echo chroot "$1/" /usr/bin/uclibc-i486-ldconfig
68 }
70 pre_remove_uclibc_i486() {
71 for i in /lib/ld-uClibc.so*; do
72 case "$(readlink $i)" in
73 *usr/share/uclibc_i486/lib/*) rm -f $i;;
74 esac
75 done
76 }