void-packages/srcpkgs/spotify/template
2016-02-22 09:24:38 -05:00

29 lines
911 B
Bash

# Template build file for 'spotify'.
pkgname=spotify
version=1.0.23
revision=1
_sversion=".93.gd6cfae15"
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+="-30_amd64"
_schecksum="99961ccd0b3d01ec28a96e158b4375fed6bb449913d34f6e03429b2d43f9db58"
else
_sversion+="-5_i386"
_schecksum="e4e8ab10a2a4875632283870155068f7d140b23b5bbb9927f32b53b4002aa6fe"
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"
}