spotify: fix absolute paths in INSTALL/REMOVE scripts

This commit is contained in:
maxice8 2018-08-26 16:10:50 -03:00
parent 7fa0d8a637
commit 94677f9a5b
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
3 changed files with 9 additions and 9 deletions

View File

@ -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"

View File

@ -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

View File

@ -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 <jazzman@alphabreed.com>"
homepage="https://www.spotify.com"