void-packages/srcpkgs/spotify/template

29 lines
911 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.43
revision=2
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=".125.g376063c5-91_amd64"
_schecksum="7b68ede2428634b2fa1cca0bb13a73821b3a803774aa89f07b1af96622767ee2"
else
_sversion=".123.g80176796-25_i386"
_schecksum="3647c6a109203f7ce9ed3dbe99a9732ef5f6044adb277985f87ffde0e8183885"
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"
}