void-packages/srcpkgs/spotify/template

30 lines
929 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
reverts=1.0.45_1
version=1.0.48
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=".103.g15edf1ec-121_amd64"
_schecksum="10a97261a43d1006a0277c4faa122203bb9983ca244ac9b0c4f1167ecf548c9f"
else
_sversion=".103.g15edf1ec-15_i386"
_schecksum="8bdb84d896b60d6ebfc7312a50d0ad44bbd33848320ddb753ec97cbd10b43ad1"
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"
}