void-packages/srcpkgs/spotify/template

29 lines
911 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.53
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=".758.gde3fc4b2-33_amd64"
_schecksum="6fac209d35828bc9a8bc5449320b92310462a2f78201e3ea620e743fc45e06ea"
else
_sversion=".758.gde3fc4b2-34_i386"
_schecksum="1c559e776481ae8b03d966bd931f788030d41ad9cd751c43fe99616494a7d84a"
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"
}