43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# Template build file for 'spotify'.
|
|
pkgname=spotify
|
|
version=0.9
|
|
revision=3
|
|
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
|
|
makedepends="libgpg-error-devel"
|
|
distfiles="ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.4.tar.bz2"
|
|
checksum="d5f88d9f41a46953dc250cdb8575129b37ee2208401b7fa338c897f667c7fb33"
|
|
depends="binutils qt gtk+ nss GConf libXScrnSaver"
|
|
|
|
if test "${XBPS_TARGET_MACHINE}" = "x86_64"; then
|
|
_sversion=".11.27.g2b1a638.81-1_amd64"
|
|
_schecksum="4f93776cac562f622e635c64fa61ee46cb9bdfbda0a2aff0905acf007894d479"
|
|
depends+=" pango-xft"
|
|
else
|
|
_sversion=".4.183.g644e24e.428-1_i386"
|
|
_schecksum="ca45d057357e4c30efee3838dd941222500463ddd0a1db6981e4d48d7ad986f2"
|
|
fi
|
|
|
|
do_extract() {
|
|
tar xjf "${XBPS_SRCDISTDIR}/spotify-${version}/libgcrypt-1.5.4.tar.bz2"
|
|
}
|
|
|
|
do_build() {
|
|
cd libgcrypt-1.5.4
|
|
./configure ${configure_args}
|
|
make
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${FILESDIR}/spotify
|
|
vmkdir usr/share/spotify/libs
|
|
vinstall libgcrypt-1.5.4/src/.libs/libgcrypt.so.11.8.3 755 usr/share/spotify/libs libgcrypt.so.11
|
|
echo "export SVERSION=\"${version}${_sversion}\"" >"${DESTDIR}/usr/share/spotify/pkgdata"
|
|
echo "export SCHECKSUM=\"${_schecksum}\"" >>"${DESTDIR}/usr/share/spotify/pkgdata"
|
|
}
|