wok diff uclibc-cross-compiler-i486/receipt @ rev 6951
Up: mono to 2.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Oct 25 20:14:02 2010 +0000 (2010-10-25) |
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 Mon Oct 25 20:14:02 2010 +0000 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 +}