mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
spotify: correctly download client on i686, improve error reporting
This commit is contained in:
parent
6f774d4815
commit
8c563fb751
2 changed files with 8 additions and 7 deletions
|
@ -13,18 +13,19 @@ if test "$ACTION" = "post"; then
|
||||||
. /usr/share/spotify/pkgdata
|
. /usr/share/spotify/pkgdata
|
||||||
mkdir -p "$_BUILDDIR"
|
mkdir -p "$_BUILDDIR"
|
||||||
(
|
(
|
||||||
|
set -e
|
||||||
cd "$_BUILDDIR"
|
cd "$_BUILDDIR"
|
||||||
xbps-uhelper fetch "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${SVERSION}.deb"
|
xbps-uhelper fetch "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${SVERSION}.deb"
|
||||||
echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum
|
echo "${SCHECKSUM} spotify-client_${SVERSION}.deb" >checksum
|
||||||
sha256sum -c checksum || exit 1
|
sha256sum -c checksum
|
||||||
ar x "spotify-client_${SVERSION}.deb"
|
ar x "spotify-client_${SVERSION}.deb"
|
||||||
[ -f data.tar.gz ] && tar xzf data.tar.gz 2>/dev/null
|
tar -xf data.tar.*
|
||||||
[ -f data.tar.xz ] && tar xJf data.tar.xz 2>/dev/null
|
)
|
||||||
) || {
|
if [ $? -ne 0 ] ; then
|
||||||
echo Error while extracting;
|
echo "Failed downloading spotify client"
|
||||||
rm -r "$_BUILDDIR";
|
rm -r "$_BUILDDIR";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
fi
|
||||||
mkdir -p /usr/share/licenses/spotify
|
mkdir -p /usr/share/licenses/spotify
|
||||||
mv "${_BUILDDIR}/usr/share/doc/spotify-client/copyright" /usr/share/licenses/spotify/
|
mv "${_BUILDDIR}/usr/share/doc/spotify-client/copyright" /usr/share/licenses/spotify/
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'spotify'.
|
# Template build file for 'spotify'.
|
||||||
pkgname=spotify
|
pkgname=spotify
|
||||||
version=0.9
|
version=0.9
|
||||||
revision=8
|
revision=9
|
||||||
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
Reference in a new issue