void-packages/srcpkgs/spotify/template
2016-03-28 15:24:44 +02:00

29 lines
912 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.26
revision=1
_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+="-14_amd64"
_schecksum="65e7917fe3cdc08683559a5efdaa3a434577ac29ed02e6b442d32841ebb58a27"
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"
}