# Template file for 'spotify'
pkgname=spotify
version=1.0.59
revision=1
short_desc="Proprietary music streaming client"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
homepage="https://www.spotify.com"
license="Proprietary"
create_wrksrc=yes
only_for_archs="x86_64 i686"
repository=nonfree
build_style=fetch
depends="binutils gtk+ nss GConf libXScrnSaver"

if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
	_sversion=".395.ge6ca9946-18_amd64"
	_schecksum=8fbe821fd516f5cd77eb2d5085e5acd8f1852b97f7b7294846fcc57b810ef515
else
	_sversion=".395.ge6ca9946-18_i386"
	_schecksum=9366d1845dae64637afbc666da31dbe52b843f4003ebc5dc642b1a5984295fb0
fi

do_install() {
	vbin ${FILESDIR}/spotify
	vmkdir usr/share/spotify
	echo "export SVERSION=\"${version}${_sversion}\"" >"${DESTDIR}/usr/share/spotify/pkgdata"
	echo "export SCHECKSUM=\"${_schecksum}\"" >>"${DESTDIR}/usr/share/spotify/pkgdata"
}
