spotify: correctly download client on i686, improve error reporting

This commit is contained in:
Dominik Honnef 2015-11-21 15:02:00 +01:00
parent 6f774d4815
commit 8c563fb751
2 changed files with 8 additions and 7 deletions

View File

@ -13,18 +13,19 @@ if test "$ACTION" = "post"; then
. /usr/share/spotify/pkgdata
mkdir -p "$_BUILDDIR"
(
set -e
cd "$_BUILDDIR"
xbps-uhelper fetch "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${SVERSION}.deb"
echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum
sha256sum -c checksum || exit 1
sha256sum -c checksum
ar x "spotify-client_${SVERSION}.deb"
[ -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;
tar -xf data.tar.*
)
if [ $? -ne 0 ] ; then
echo "Failed downloading spotify client"
rm -r "$_BUILDDIR";
exit 1;
}
fi
mkdir -p /usr/share/licenses/spotify
mv "${_BUILDDIR}/usr/share/doc/spotify-client/copyright" /usr/share/licenses/spotify/

View File

@ -1,7 +1,7 @@
# Template build file for 'spotify'.
pkgname=spotify
version=0.9
revision=8
revision=9
short_desc="Proprietary music streaming client"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
homepage="https://www.spotify.com"