spotify: fix absolute paths in INSTALL/REMOVE scripts
This commit is contained in:
parent
7fa0d8a637
commit
94677f9a5b
3 changed files with 9 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Fetching proprietary binaries at install-time
|
# Fetching proprietary binaries at install-time
|
||||||
|
|
||||||
_BUILDDIR="/tmp/spotify.build"
|
_BUILDDIR="/tmp/spotify.build"
|
||||||
_LIBS=$(ldconfig -vNX -n /usr/lib 2>/dev/null)
|
_LIBS=$(ldconfig -vNX -n usr/lib 2>/dev/null)
|
||||||
|
|
||||||
linklib() {
|
linklib() {
|
||||||
_LIB=$(echo "$_LIBS" | grep -m 1 "${1}\.so" | sed 's/\s*\([^ ]*\).*$/\1/')
|
_LIB=$(echo "$_LIBS" | grep -m 1 "${1}\.so" | sed 's/\s*\([^ ]*\).*$/\1/')
|
||||||
|
@ -10,7 +10,7 @@ linklib() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "$ACTION" = "post"; then
|
if test "$ACTION" = "post"; then
|
||||||
. /usr/share/spotify/pkgdata
|
. usr/share/spotify/pkgdata
|
||||||
mkdir -p "$_BUILDDIR"
|
mkdir -p "$_BUILDDIR"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
@ -27,14 +27,14 @@ if test "$ACTION" = "post"; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d "/usr/share/spotify/spotify-client" ] && rm -rf /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
|
mv -f "${_BUILDDIR}/usr/share/spotify" usr/share/spotify/spotify-client
|
||||||
for _s in 16 22 24 32 48 64 128 256 512; do
|
for _s in 16 22 24 32 48 64 128 256 512; do
|
||||||
mkdir -p "/usr/share/icons/hicolor/${_s}x${_s}/apps"
|
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"
|
ln -sf "/usr/share/spotify/spotify-client/icons/spotify-linux-${_s}.png" "/usr/share/icons/hicolor/${_s}x${_s}/apps/spotify-client.png"
|
||||||
done
|
done
|
||||||
mkdir -p /usr/share/applications
|
mkdir -p usr/share/applications
|
||||||
ln -sf /usr/share/spotify/spotify-client/spotify.desktop /usr/share/applications/spotify.desktop
|
ln -sf /usr/share/spotify/spotify-client/spotify.desktop usr/share/applications/spotify.desktop
|
||||||
linklib "libssl" "1.0.0"
|
linklib "libssl" "1.0.0"
|
||||||
linklib "libcrypto" "1.0.0"
|
linklib "libcrypto" "1.0.0"
|
||||||
rm -r "$_BUILDDIR"
|
rm -r "$_BUILDDIR"
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
# Deleting dynamically fetched files
|
# Deleting dynamically fetched files
|
||||||
|
|
||||||
if test "$ACTION" = "post"; then
|
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
|
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"
|
rm "/usr/share/icons/hicolor/${_s}x${_s}/apps/spotify-client.png"
|
||||||
done
|
done
|
||||||
rm -r /usr/share/spotify
|
rm -r usr/share/spotify
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'spotify'
|
# Template file for 'spotify'
|
||||||
pkgname=spotify
|
pkgname=spotify
|
||||||
version=1.0.88
|
version=1.0.88
|
||||||
revision=2
|
revision=3
|
||||||
short_desc="Proprietary music streaming client"
|
short_desc="Proprietary music streaming client"
|
||||||
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
||||||
homepage="https://www.spotify.com"
|
homepage="https://www.spotify.com"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue