void-packages/srcpkgs/spotifyd/template
m3tav3rse 323b40906a spotifyd: update to 0.3.2.
Closes: #29318 [via git-merge-pr]
2021-03-08 16:33:08 -07:00

35 lines
1.2 KiB
Bash

# Template file for 'spotifyd'
pkgname=spotifyd
version=0.3.2
revision=1
build_style=cargo
configure_args="--no-default-features"
hostmakedepends="pkg-config"
makedepends="openssl-devel $(vopt_if alsa alsa-lib-devel)
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if portaudio portaudio-devel)
$(vopt_if dbus dbus-devel)"
short_desc="Spotify client running as a UNIX daemon"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Spotifyd/spotifyd"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=d1d5442e6639cde7fbd390a65335489611eec62a1cfcba99a4aba8e8977a9d9c
build_options="alsa pulseaudio portaudio dbus"
build_options_default="alsa pulseaudio portaudio dbus"
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"
export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
_features="$(vopt_if alsa ',alsa_backend')"
_features+="$(vopt_if pulseaudio ',pulseaudio_backend')"
_features+="$(vopt_if dbus ',dbus_mpris,dbus_keyring')"
_features+="$(vopt_if portaudio ',portaudio_backend')"
if [ "$_features" ]; then
configure_args+=" --features $_features"
fi
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="https://travis-ci.org/void-linux/void-packages/jobs/636076091" ;;
esac