wok annotate uclibc-cross-compiler-i486/receipt @ rev 5990
uclibc-cross-compiler-i486: add run time support for host
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 14 16:57:26 2010 +0200 (2010-08-14) |
parents | 8da46cc14f57 |
children | 81728dc610ff |
rev | line source |
---|---|
pascal@5987 | 1 # SliTaz package receipt. |
pascal@5987 | 2 |
pascal@5987 | 3 PACKAGE="uclibc-cross-compiler-i486" |
pascal@5987 | 4 VERSION="prebuilt" |
pascal@5987 | 5 CATEGORY="development" |
pascal@5987 | 6 SHORT_DESC="Toolchain for uclibc/i486." |
pascal@5987 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@5987 | 8 SOURCE="cross-compiler-i486" |
pascal@5987 | 9 TARBALL="$SOURCE.tar.bz2" |
pascal@5987 | 10 WEB_SITE="http://impactlinux.com/aboriginal" |
pascal@5987 | 11 WGET_URL="$WEB_SITE/downloads/binaries/$TARBALL" |
pascal@5987 | 12 |
pascal@5987 | 13 # Rules to configure and make the package. |
pascal@5987 | 14 compile_rules() |
pascal@5987 | 15 { |
pascal@5987 | 16 cd $SOURCE |
pascal@5987 | 17 } |
pascal@5987 | 18 |
pascal@5987 | 19 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5987 | 20 genpkg_rules() |
pascal@5987 | 21 { |
pascal@5987 | 22 mkdir -p $fs/usr/share $fs/usr/bin |
pascal@5987 | 23 cp -a $SOURCE $fs/usr/share/$PACKAGE |
pascal@5987 | 24 for i in $(cd $SOURCE ; ls bin/${PACKAGE##*-}-*); do |
pascal@5987 | 25 file=$(basename $i) |
pascal@5987 | 26 ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file |
pascal@5987 | 27 done |
pascal@5987 | 28 } |
pascal@5990 | 29 |
pascal@5990 | 30 # Pre and post install commands for Tazpkg. |
pascal@5990 | 31 post_install() |
pascal@5990 | 32 { |
pascal@5990 | 33 for i in $(cd $1/ ; ls usr/share/$PACKAGE/lib/ld-uClibc.so*); do |
pascal@5990 | 34 [ -e $1/lib/$(basename $i) ] || ln -s /$i $1/lib |
pascal@5990 | 35 done |
pascal@5990 | 36 cat <<EOT |
pascal@5990 | 37 Add /usr/share/$PACKAGE/lib in your LD_LIBRARY_PATH to enable the shared libraries |
pascal@5990 | 38 EOT |
pascal@5990 | 39 } |
pascal@5990 | 40 |
pascal@5990 | 41 pre_remove() |
pascal@5990 | 42 { |
pascal@5990 | 43 for i in /lib/ld-uClibc.so*; do |
pascal@5990 | 44 case "$(readlink $i)" in |
pascal@5990 | 45 *usr/share/$PACKAGE/lib/*) rm -f $i ;; |
pascal@5990 | 46 esac |
pascal@5990 | 47 done |
pascal@5990 | 48 } |