diff options
author | Ryan P.C. McQuen <ryan.q@linux.com> | 2015-04-02 09:02:48 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-05 08:38:23 +0700 |
commit | 7db84256fe684d817470d281f2ea38754ff1eb50 (patch) | |
tree | ea641f47a8a0ac34068398c80484f0903a4e37cd /multimedia/spotify64/spotify64.SlackBuild | |
parent | 2228ebd8f36e301bac359cf0341bc2f4b358a9fa (diff) | |
download | slackbuilds-7db84256fe684d817470d281f2ea38754ff1eb50.tar.gz |
multimedia/spotify64: Updated for version 0.9.17.1.g9b85d43.7.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'multimedia/spotify64/spotify64.SlackBuild')
-rw-r--r-- | multimedia/spotify64/spotify64.SlackBuild | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/multimedia/spotify64/spotify64.SlackBuild b/multimedia/spotify64/spotify64.SlackBuild index cb5e7fc060..bb1cb03256 100644 --- a/multimedia/spotify64/spotify64.SlackBuild +++ b/multimedia/spotify64/spotify64.SlackBuild @@ -24,8 +24,8 @@ PRGNAM=spotify64 SRCNAM=spotify -VERSION=${VERSION:-0.9.11.27.g2b1a638.81} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.9.17.1.g9b85d43.7} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} case "$(uname -m)" in @@ -43,7 +43,7 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $PKG -ar -p $CWD/${SRCNAM}-client_${VERSION}-1_${DEBARCH}.deb data.tar.gz | tar zxv +ar -p $CWD/${SRCNAM}-client_${VERSION}-1_${DEBARCH}.deb data.tar.xz | tar Jxv chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -51,31 +51,25 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Symlinks to fix lib naming issue. -ln -sf /usr/lib${LIBDIRSUFFIX}/libnspr4.so $PKG/opt/spotify/spotify-client/libnspr4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libnss3.so $PKG/opt/spotify/spotify-client/libnss3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libnssutil3.so $PKG/opt/spotify/spotify-client/libnssutil3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libplc4.so $PKG/opt/spotify/spotify-client/libplc4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libplds4.so $PKG/opt/spotify/spotify-client/libplds4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libsmime3.so $PKG/opt/spotify/spotify-client/libsmime3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libssl3.so $PKG/opt/spotify/spotify-client/libssl3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libssl.so.1.0.0 $PKG/opt/spotify/spotify-client/libssl.so.0.9.8 -ln -sf /usr/lib${LIBDIRSUFFIX}/libcrypto.so.1.0.0 $PKG/opt/spotify/spotify-client/libcrypto.so.0.9.8 - -## fixes some display issues -ln -sf /usr/lib${LIBDIRSUFFIX}/libnspr4.so $PKG/opt/spotify/spotify-client/Data/libnspr4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libnss3.so $PKG/opt/spotify/spotify-client/Data/libnss3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libnssutil3.so $PKG/opt/spotify/spotify-client/Data/libnssutil3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libplc4.so $PKG/opt/spotify/spotify-client/Data/libplc4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libplds4.so $PKG/opt/spotify/spotify-client/Data/libplds4.so.0d -ln -sf /usr/lib${LIBDIRSUFFIX}/libsmime3.so $PKG/opt/spotify/spotify-client/Data/libsmime3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libssl3.so $PKG/opt/spotify/spotify-client/Data/libssl3.so.1d -ln -sf /usr/lib${LIBDIRSUFFIX}/libssl.so.1.0.0 $PKG/opt/spotify/spotify-client/Data/libssl.so.0.9.8 -ln -sf /usr/lib${LIBDIRSUFFIX}/libcrypto.so.1.0.0 $PKG/opt/spotify/spotify-client/Data/libcrypto.so.0.9.8 - -rm $PKG/opt/spotify/spotify-client/spotify.desktop +## fixes udev1 dependency +ln -sf /usr/lib${LIBDIRSUFFIX}/libudev.so $PKG/opt/$SRCNAM/$SRCNAM-client/Data/libudev.so.1 + +## we don't need the symlink, +## we have udev issues to fix ;^) +rm $PKG/usr/bin/$SRCNAM + +## we make our own script since +## we have to set the lib path +cat <<EOT > $PKG/usr/bin/$SRCNAM +#!/bin/sh +## fix libudev issue +LD_LIBRARY_PATH=/opt/$SRCNAM/$SRCNAM-client/Data/ /opt/$SRCNAM/$SRCNAM-client/$SRCNAM +EOT +chmod 755 $PKG/usr/bin/$SRCNAM + +rm $PKG/opt/$SRCNAM/$SRCNAM-client/$SRCNAM.desktop mkdir -p $PKG/usr/share/applications/ -cat $CWD/spotify.desktop > $PKG/usr/share/applications/spotify.desktop +cat $CWD/$SRCNAM.desktop > $PKG/usr/share/applications/$SRCNAM.desktop mv $PKG/usr/share/doc $PKG/usr mv $PKG/usr/doc/$SRCNAM-client $PKG/usr/doc/$PRGNAM-$VERSION |