From 94677f9a5b476c2a5f5d5e1eeaaf5c54ef2d2a3b Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 26 Aug 2018 16:10:50 -0300 Subject: [PATCH] spotify: fix absolute paths in INSTALL/REMOVE scripts --- srcpkgs/spotify/INSTALL | 12 ++++++------ srcpkgs/spotify/REMOVE | 4 ++-- srcpkgs/spotify/template | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/srcpkgs/spotify/INSTALL b/srcpkgs/spotify/INSTALL index 97d110048d5..1cf70985dcb 100644 --- a/srcpkgs/spotify/INSTALL +++ b/srcpkgs/spotify/INSTALL @@ -2,7 +2,7 @@ # Fetching proprietary binaries at install-time _BUILDDIR="/tmp/spotify.build" -_LIBS=$(ldconfig -vNX -n /usr/lib 2>/dev/null) +_LIBS=$(ldconfig -vNX -n usr/lib 2>/dev/null) linklib() { _LIB=$(echo "$_LIBS" | grep -m 1 "${1}\.so" | sed 's/\s*\([^ ]*\).*$/\1/') @@ -10,7 +10,7 @@ linklib() { } if test "$ACTION" = "post"; then - . /usr/share/spotify/pkgdata + . usr/share/spotify/pkgdata mkdir -p "$_BUILDDIR" ( set -e @@ -27,14 +27,14 @@ if test "$ACTION" = "post"; then exit 1; fi - [ -d "/usr/share/spotify/spotify-client" ] && rm -rf /usr/share/spotify/spotify-client - mv -f "${_BUILDDIR}/usr/share/spotify" /usr/share/spotify/spotify-client + [ -d "/usr/share/spotify/spotify-client" ] && rm -rf usr/share/spotify/spotify-client + mv -f "${_BUILDDIR}/usr/share/spotify" usr/share/spotify/spotify-client for _s in 16 22 24 32 48 64 128 256 512; do mkdir -p "/usr/share/icons/hicolor/${_s}x${_s}/apps" ln -sf "/usr/share/spotify/spotify-client/icons/spotify-linux-${_s}.png" "/usr/share/icons/hicolor/${_s}x${_s}/apps/spotify-client.png" done - mkdir -p /usr/share/applications - ln -sf /usr/share/spotify/spotify-client/spotify.desktop /usr/share/applications/spotify.desktop + mkdir -p usr/share/applications + ln -sf /usr/share/spotify/spotify-client/spotify.desktop usr/share/applications/spotify.desktop linklib "libssl" "1.0.0" linklib "libcrypto" "1.0.0" rm -r "$_BUILDDIR" diff --git a/srcpkgs/spotify/REMOVE b/srcpkgs/spotify/REMOVE index e8a6922521c..c109f570ef8 100644 --- a/srcpkgs/spotify/REMOVE +++ b/srcpkgs/spotify/REMOVE @@ -2,10 +2,10 @@ # Deleting dynamically fetched files if test "$ACTION" = "post"; then - rm /usr/share/applications/spotify.desktop + rm usr/share/applications/spotify.desktop for _s in 16 22 24 32 48 64 128 256 512; do rm "/usr/share/icons/hicolor/${_s}x${_s}/apps/spotify-client.png" done - rm -r /usr/share/spotify + rm -r usr/share/spotify fi diff --git a/srcpkgs/spotify/template b/srcpkgs/spotify/template index 7b54a018542..012897fb383 100644 --- a/srcpkgs/spotify/template +++ b/srcpkgs/spotify/template @@ -1,7 +1,7 @@ # Template file for 'spotify' pkgname=spotify version=1.0.88 -revision=2 +revision=3 short_desc="Proprietary music streaming client" maintainer="Stefan Mühlinghaus " homepage="https://www.spotify.com"