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