wok-next rev 12895
get-skype: fix library versions in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 28 10:47:31 2012 +0200 (2012-05-28) |
parents | 53da4d85cdb3 |
children | 4bc5b5455e73 |
files | get-skype/stuff/get-skype |
line diff
1.1 --- a/get-skype/stuff/get-skype Mon May 28 10:16:53 2012 +0200 1.2 +++ b/get-skype/stuff/get-skype Mon May 28 10:47:31 2012 +0200 1.3 @@ -32,14 +32,14 @@ 1.4 # Extract 1.5 TARBALL=$(ls $TARBALL skype*.tar.bz2 2> /dev/null || true) 1.6 tar xjf $TARBALL 1.7 -VERSION=$(ls -d skype_static-*/) 1.8 +VERSION=$(ls -d skype_static*-*/) 1.9 VERSION=${VERSION%/} 1.10 -VERSION=${VERSION#skype_static-} 1.11 +VERSION=${VERSION#skype_static*-} 1.12 1.13 # extracted pkg can be removed: Save RAM 1.14 rm -f $TARBALL 1.15 1.16 -cd skype_static-$VERSION 1.17 +cd skype_static*-$VERSION 1.18 1.19 # Install files 1.20 mkdir -p skype-$VERSION/fs/usr/share/skype skype-$VERSION/fs/usr/bin 1.21 @@ -64,8 +64,16 @@ 1.22 CATEGORY="non-free" 1.23 SHORT_DESC="Skype Internet Telephony." 1.24 WEB_SITE="$WEB_SITE" 1.25 -DEPENDS="libsigc++ xorg-libXv xorg-libXss libv4l bzip2" 1.26 +DEPENDS="libsigc++ xorg-libXv xorg-libXss libv4l bzip2 tiff" 1.27 CONFIG_FILES="/etc/skype.conf" 1.28 + 1.29 +post_install() 1.30 +{ 1.31 + # try to fix library versions 1.32 + ldd /usr/bin/skype | sed '/not found/!d;s/ =>.*//' | while read lib; do 1.33 + [ -e /usr/lib/\${lib%.*} ] && ln -s \${lib%.*} /usr/lib/\$lib 1.34 + done 1.35 +} 1.36 EOT 1.37 1.38 # Pack