void-packages/srcpkgs/spotify/template

30 lines
905 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.19
revision=1
_sversion=".106.gb8a7150f"
short_desc="Proprietary music streaming client"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
homepage="https://www.spotify.com"
license="Proprietary"
create_wrksrc=1
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+="_amd64"
_schecksum="be6b99329bb2fccdc9d77bc949dd463576fdb40db7f56195b4284bd348c470be"
else
_sversion+="_i386"
_schecksum="128b5d04dda8a052802fb9e664a996250569696fac359e94ea35043472f5dbcb"
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"
}