wok-6.x 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 d30a1e06f817
children 5f6692b9576a
files uclibc-cross-compiler-i486/receipt
line diff
     1.1 --- a/uclibc-cross-compiler-i486/receipt	Sat Aug 14 14:36:15 2010 +0200
     1.2 +++ b/uclibc-cross-compiler-i486/receipt	Sat Aug 14 16:57:26 2010 +0200
     1.3 @@ -26,3 +26,23 @@
     1.4  		ln -s ../share/$PACKAGE/bin/$file $fs/usr/bin/uclibc-$file
     1.5  	done
     1.6  }
     1.7 +
     1.8 +# Pre and post install commands for Tazpkg.
     1.9 +post_install()
    1.10 +{
    1.11 +	for i in $(cd $1/ ; ls usr/share/$PACKAGE/lib/ld-uClibc.so*); do
    1.12 +		[ -e $1/lib/$(basename $i) ] || ln -s /$i $1/lib
    1.13 +	done
    1.14 +	cat <<EOT
    1.15 +Add /usr/share/$PACKAGE/lib in your LD_LIBRARY_PATH to enable the shared libraries
    1.16 +EOT
    1.17 +}
    1.18 +
    1.19 +pre_remove()
    1.20 +{
    1.21 +	for i in /lib/ld-uClibc.so*; do
    1.22 +		case "$(readlink $i)" in
    1.23 +		*usr/share/$PACKAGE/lib/*) rm -f $i ;;
    1.24 +		esac
    1.25 +	done
    1.26 +}