summaryrefslogtreecommitdiff
path: root/multimedia/spotify64
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-11-21 16:28:57 -0800
committerRyan P.C. McQuen <ryan.q@linux.com>2015-11-21 16:28:57 -0800
commitb541e454321123c6772490a2489d643b57e09354 (patch)
tree3b0d7e8912940af2902dc1bab43b2de7114a1a6d /multimedia/spotify64
parentcb93341582e2985d1ee684522987cb44e5b9230e (diff)
downloadslackbuilds-b541e454321123c6772490a2489d643b57e09354.tar.gz
multimedia/spotify64: Improve icon install.
Thanks to Dhaby Xiloj. Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'multimedia/spotify64')
-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