From 13c7578472a7a7bb65236a11d0bc1e11bd26ef6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Thu, 26 Mar 2015 19:07:58 +0100 Subject: [PATCH] spotify: Fixed extraction for 32bit --- srcpkgs/spotify/INSTALL | 6 ++++-- srcpkgs/spotify/template | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/spotify/INSTALL b/srcpkgs/spotify/INSTALL index 26606e34222..09c08684dec 100644 --- a/srcpkgs/spotify/INSTALL +++ b/srcpkgs/spotify/INSTALL @@ -18,7 +18,8 @@ if test "$ACTION" = "post"; then echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum sha256sum -c checksum || exit 1 ar x "spotify-client_${SVERSION}.deb" - tar xf data.tar.xz + [ -f data.tar.gz ] && tar xzf data.tar.gz 2>/dev/null + [ -f data.tar.xz ] && tar xJf data.tar.xz 2>/dev/null ) || { echo Error while extracting; rm -r "$_BUILDDIR"; @@ -26,7 +27,8 @@ if test "$ACTION" = "post"; then } mkdir -p /usr/share/licenses/spotify mv "${_BUILDDIR}/usr/share/doc/spotify-client/copyright" /usr/share/licenses/spotify/ - mv "${_BUILDDIR}/opt/spotify/spotify-client" /usr/share/spotify/spotify-client + + mv -f "${_BUILDDIR}/opt/spotify/spotify-client" /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" diff --git a/srcpkgs/spotify/template b/srcpkgs/spotify/template index 394463056f7..7f8320fd202 100644 --- a/srcpkgs/spotify/template +++ b/srcpkgs/spotify/template @@ -1,7 +1,7 @@ # Template build file for 'spotify'. pkgname=spotify version=0.9 -revision=6 +revision=7 short_desc="Proprietary music streaming client" maintainer="Stefan Mühlinghaus " homepage="https://www.spotify.com"