diff options
author | Ryan P.C. McQuen <ryan.q@linux.com> | 2015-11-21 17:38:26 -0800 |
---|---|---|
committer | Ryan P.C. McQuen <ryan.q@linux.com> | 2015-11-21 17:38:26 -0800 |
commit | c96747f4ed80529657ae9609440cdbf7a69a5620 (patch) | |
tree | 3bb866c9e8f46002844ac9d124099e486c6b5eac /multimedia/spotify32/spotify32.SlackBuild | |
parent | b541e454321123c6772490a2489d643b57e09354 (diff) | |
download | slackbuilds-c96747f4ed80529657ae9609440cdbf7a69a5620.tar.gz |
multimedia/spotify32: Improve icon install.
Thanks to Dhaby Xiloj.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'multimedia/spotify32/spotify32.SlackBuild')
-rw-r--r-- | multimedia/spotify32/spotify32.SlackBuild | 16 |
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 |