wok-stable rev 12293

get-skype: add pre_remove cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 28 11:31:34 2012 +0200 (2012-05-28)
parents 2fbca5a7a4be
children db9c37591c03
files get-skype/stuff/get-skype
line diff
     1.1 --- a/get-skype/stuff/get-skype	Mon May 28 10:46:30 2012 +0200
     1.2 +++ b/get-skype/stuff/get-skype	Mon May 28 11:31:34 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