void-packages/srcpkgs/spotify/template
2017-03-27 09:05:40 +02:00

28 lines
911 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.52
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 xz"
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
_sversion=".717.g2f08534a-47_amd64"
_schecksum="475af745895030f9711260a13edd9f144e92df64776057985af527b3e4250df7"
else
_sversion=".717.g2f08534a-47_i386"
_schecksum="feef78eeffd714935515aa7a2a24cb025f9d91e52a3abc9b285a32ec6a9e7f01"
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"
}