summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/spotify64/spotify.desktop11
-rw-r--r--multimedia/spotify64/spotify64.SlackBuild16
2 files changed, 13 insertions, 14 deletions
diff --git a/multimedia/spotify64/spotify.desktop b/multimedia/spotify64/spotify.desktop
deleted file mode 100644
index fd03b8ab8b..0000000000
--- a/multimedia/spotify64/spotify.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Name=Spotify
-GenericName=Music Player
-Comment=Listen to music using Spotify
-Icon=/opt/spotify/spotify-client/Icons/spotify-linux-512.png
-Exec=spotify %U
-TryExec=spotify
-Terminal=false
-Type=Application
-Categories=Qt;Audio;Player;AudioVideo;
-MimeType=x-scheme-handler/spotify;
diff --git a/multimedia/spotify64/spotify64.SlackBuild b/multimedia/spotify64/spotify64.SlackBuild
index 28399a40cc..083b9cf78f 100644
--- a/multimedia/spotify64/spotify64.SlackBuild
+++ b/multimedia/spotify64/spotify64.SlackBuild
@@ -25,7 +25,7 @@ PRGNAM=spotify64
SRCNAM=spotify
VERSION=${VERSION:-0.9.17.8.gd06432d.31}
SHORTVER=`echo $VERSION | cut -d. -f1-3`
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
case "$(uname -m)" in
@@ -67,9 +67,19 @@ LD_LIBRARY_PATH=/opt/$SRCNAM/$SRCNAM-client/Data/ /opt/$SRCNAM/$SRCNAM-client/$S
EOT
chmod 755 $PKG/usr/bin/$SRCNAM
-rm $PKG/opt/$SRCNAM/$SRCNAM-client/$SRCNAM.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/$SRCNAM.desktop > $PKG/usr/share/applications/$SRCNAM.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-$SHORTVER $PKG/usr/doc/$PRGNAM-$VERSION