wok-6.x rev 12896
get-skype: add pre_remove cleanup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 28 11:31:02 2012 +0200 (2012-05-28) |
parents | 1acec5b0224d |
children | 66e6aa5c9b00 |
files | get-skype/stuff/get-skype |
line diff
1.1 --- a/get-skype/stuff/get-skype Mon May 28 10:47:31 2012 +0200 1.2 +++ b/get-skype/stuff/get-skype Mon May 28 11:31:02 2012 +0200 1.3 @@ -71,7 +71,16 @@ 1.4 { 1.5 # try to fix library versions 1.6 ldd /usr/bin/skype | sed '/not found/!d;s/ =>.*//' | while read lib; do 1.7 - [ -e /usr/lib/\${lib%.*} ] && ln -s \${lib%.*} /usr/lib/\$lib 1.8 + [ -e /usr/lib/\${lib%.*} ] && 1.9 + ln -s \${lib%.*} /usr/lib/\$lib && 1.10 + touch /usr/lib/\$lib-hack-for-skype 1.11 + done 1.12 +} 1.13 + 1.14 +pre_remove() 1.15 +{ 1.16 + for lib in /usr/lib/*-hack-by-skype ; do 1.17 + rm -f $lib ${lib%-hack-for-skype} 1.18 done 1.19 } 1.20 EOT