void-packages/srcpkgs/spotify/template

29 lines
908 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.27
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 test "${XBPS_TARGET_MACHINE}" = "x86_64"; then
_sversion=".71.g0a26e3b2-9_amd64"
_schecksum="82dc602ed17bbb9d0f2b161c69226f8a291f85d544fe4abffa347860374340e7"
else
_sversion=".73.g602ced10-2_i386"
_schecksum="b7113e2aa305cd2389d8861c6212de05ed5a9cfaa2a85e8021b355a848634f34"
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"
}