void-packages/srcpkgs/spotify/template

30 lines
912 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.26
revision=2
_sversion=".125.g64dc8bc6"
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 test "${XBPS_TARGET_MACHINE}" = "x86_64"; then
_sversion+="-15_amd64"
_schecksum="e15b159dd2f20f8c00067545d5899f40f991fa89e1cf246b280289944396c407"
else
_sversion+="-5_i386"
_schecksum="13dfa424106762821765a900612ab40982a32d640e13c266c0a5102cdc6cea5a"
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"
}