diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2022-08-23 02:40:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-08-27 22:50:27 +0700 |
commit | 1ec00df68fec8835346758a9cd6101a9b33ecdd4 (patch) | |
tree | f85f426e896882de809cf7bd122ff2615190f924 /multimedia | |
parent | 70dad7deac69570cb8d9fbb9f1b8274a2a8c1876 (diff) |
multimedia/spotify: Update script. Bump BUILD.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/spotify/spotify.SlackBuild | 52 |
1 files changed, 17 insertions, 35 deletions
diff --git a/multimedia/spotify/spotify.SlackBuild b/multimedia/spotify/spotify.SlackBuild index 7eacb2e462c0e..38678ce3771b6 100644 --- a/multimedia/spotify/spotify.SlackBuild +++ b/multimedia/spotify/spotify.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for spotify. # # Copyright 2017 Dhaby Xiloj <slack.dhabyx@gmail.com> -# Copyright 2022 Edinaldo P. Silva, Rio de Janeiro, Brazil +# Copyright 2022 Edinaldo P. Silva, Rio de Janeiro, Brazil # # Based on Ryan's SlackBuild: # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org @@ -34,7 +34,7 @@ VERSION=${VERSION:-1.1.84.716} RELVER=${RELVER:-gc5f8b819} VERSION32=${VERSION32:-1.0.72.117} RELVER32=${RELVER32:-g6bd7cc73-35} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,44 +67,26 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -## create our opt/ directory -mkdir -p $PKG/opt/$PRGNAM/ +# directories. +mkdir -p $PKG/usr/{bin,doc/${PRGNAM}-$VERSION,share/applications} -## move usr/ to opt/ to avoid -## collisions -mv usr/ $PKG/opt/$PRGNAM/ +# application launcher. +mv $PKG/usr/share/$PRGNAM/$PRGNAM.desktop $PKG/usr/share/applications/$SRCNAM.desktop +ln -sf /usr/share/$PRGNAM/$PRGNAM $PKG/usr/bin/$PRGNAM -## rebuild some directories -mkdir -p $PKG/usr/{bin,doc}/ -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +# icons. +for res in 16 22 24 32 48 64 128 256 512; do + install -Dm644 "$PKG/usr/share/$PRGNAM/icons/spotify-linux-${res}.png" \ +"$PKG/usr/share/icons/hicolor/${res}x${res}/apps/$SRCNAM.png" +done -## we make our own launcher -cat <<EOT > $PKG/usr/bin/$PRGNAM -#!/bin/sh -/opt/$PRGNAM/usr/bin/$PRGNAM "\$@" -EOT - -chmod 755 $PKG/usr/bin/$PRGNAM - -## install all icon sizes, thanks to Dhaby -( - cd $PKG/opt/$PRGNAM/usr/share/$PRGNAM/icons - for IMG in $PRGNAM-linux-*.png; do - SIZE=${IMG##*$PRGNAM-linux-} - DIRNAME=${SIZE%.png}x${SIZE%.png} - install -Dm644 $IMG $PKG/usr/share/icons/hicolor/$DIRNAME/apps/$SRCNAM.png - done -) - -mkdir -p $PKG/usr/share/applications/ -mv $PKG/opt/$PRGNAM/usr/share/$PRGNAM/$PRGNAM.desktop \ - $PKG/usr/share/applications/$SRCNAM.desktop - -mv $PKG/opt/$PRGNAM/usr/share/doc/$SRCNAM/* $PKG/usr/doc/$PRGNAM-$VERSION -cd $PKG/usr/doc/${PRGNAM}-$VERSION/ -gzip -dc changelog.gz > ChangeLog; rm -f changelog.gz; +# docs. +gzip -dc $PKG/usr/share/doc/$SRCNAM/changelog.gz > $PKG/usr/doc/$PRGNAM-$VERSION/ChangeLog cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +# remove dirs. +rm -rf $PKG/usr/share/{doc,spotify/apt-keys} + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |