summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/spotify32/spotify32.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/multimedia/spotify32/spotify32.SlackBuild b/multimedia/spotify32/spotify32.SlackBuild
index 52f3e50133..b08e149b10 100644
--- a/multimedia/spotify32/spotify32.SlackBuild
+++ b/multimedia/spotify32/spotify32.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=spotify32
SRCNAM=spotify
VERSION=${VERSION:-0.9.4.183.g644e24e.428}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
case "$(uname -m)" in
@@ -73,9 +73,19 @@ ln -sf /usr/lib${LIBDIRSUFFIX}/libssl3.so $PKG/opt/spotify/spotify-client/Data/l
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
+## install all icon sizes, thanks to Dhaby
+(
+ cd $PKG/opt/$SRCNAM/$SRCNAM-client/Icons
+ for IMG in spotify-linux-*.png; do
+ SIZE=${IMG##*spotify-linux-}
+ DIRNAME=${SIZE%.png}x${SIZE%.png}
+ install -D $IMG $PKG/usr/share/icons/hicolor/$DIRNAME/apps/$SRCNAM-client.png
+ done
+)
+
mkdir -p $PKG/usr/share/applications/
-cat $CWD/spotify.desktop > $PKG/usr/share/applications/spotify.desktop
+mv $PKG/opt/$SRCNAM/$SRCNAM-client/$SRCNAM.desktop \
+ $PKG/usr/share/applications/$SRCNAM.desktop
mv $PKG/usr/share/doc $PKG/usr
mv $PKG/usr/doc/$SRCNAM-client $PKG/usr/doc/$SRCNAM-$VERSION