aboutsummaryrefslogtreecommitdiff
path: root/multimedia/spotify/spotify.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/spotify/spotify.SlackBuild')
-rw-r--r--multimedia/spotify/spotify.SlackBuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/multimedia/spotify/spotify.SlackBuild b/multimedia/spotify/spotify.SlackBuild
index 8b98fa63da68..1e51b85c7535 100644
--- a/multimedia/spotify/spotify.SlackBuild
+++ b/multimedia/spotify/spotify.SlackBuild
@@ -2,9 +2,10 @@
#
# Slackware build script for spotify
-# Copyright 2011-2012 Minime
+# Copyright 2011-2013 Minime
# All rights reserved.
-#
+# Updated for 0.9.0.133.gd18ed58.259 by Klaatu @member.fsf.org
+
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=spotify
-VERSION=0.8.4.103.g9cb177b.260
+VERSION=0.9.0.133.gd18ed58.259
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -47,18 +48,27 @@ ar -p $CWD/${PRGNAM}-client_${VERSION}-1_${DEBARCH}.deb data.tar.gz | tar zxv
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Replace the symlink with our wrapper.
-rm $PKG/usr/bin/spotify
-install -m0755 -oroot -groot $CWD/spotify $PKG/usr/bin/spotify
-
# Symlinks to fix lib naming issue.
-cd $PKG/usr/share/spotify/
-ln -s /usr/lib$LIBDIRSUFFIX/libnss3.so libnss3.so.1d
-ln -s /usr/lib$LIBDIRSUFFIX/libnssutil3.so libnssutil3.so.1d
-ln -s /usr/lib$LIBDIRSUFFIX/libsmime3.so libsmime3.so.1d
-ln -s /usr/lib$LIBDIRSUFFIX/libplc4.so libplc4.so.0d
-ln -s /usr/lib$LIBDIRSUFFIX/libnspr4.so libnspr4.so.0d
+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.10 $PKG/opt/spotify/spotify-client/libssl.so.0.9.8
+ln -sf /usr/lib${LIBDIRSUFFIX}/libcrypto.so.10 $PKG/opt/spotify/spotify-client/libcrypto.so.0.9.8
+
+# Stole a sed command
+# from github.com/xhochy/gentoo-overlay/blob/master/media-sound/spotify/spotify-0.8.8.323.ebuild
+sed -i \
+ -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+ $PKG/opt/spotify/spotify-client/spotify || exit 1
+
+rm $PKG/opt/spotify/spotify-client/spotify.desktop
+mkdir -p $PKG/usr/share/applications/
+cat $CWD/spotify.desktop > $PKG/usr/share/applications/spotify.desktop
mv $PKG/usr/share/doc $PKG/usr
mv $PKG/usr/doc/$PRGNAM-client $PKG/usr/doc/$PRGNAM-$VERSION