wok-6.x diff uclibc-cross-compiler-i486/receipt @ rev 8078

Up: mesa 7.10
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Jan 22 02:37:34 2011 +0100 (2011-01-22)
parents 8da46cc14f57
children 81728dc610ff
line diff
     1.1 --- a/uclibc-cross-compiler-i486/receipt	Sat Aug 14 14:20:45 2010 +0200
     1.2 +++ b/uclibc-cross-compiler-i486/receipt	Sat Jan 22 02:37:34 2011 +0100
     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 +}