From 56cecb95f5d4e0bd6e21c61f26ec0f84b60b7423 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Wed, 30 Oct 2019 08:03:26 -0500 Subject: [PATCH] New package: spotifyd-0.2.20 Closes #15218 --- srcpkgs/spotifyd/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/spotifyd/template diff --git a/srcpkgs/spotifyd/template b/srcpkgs/spotifyd/template new file mode 100644 index 00000000000..f1579108573 --- /dev/null +++ b/srcpkgs/spotifyd/template @@ -0,0 +1,24 @@ +# Template file for 'spotifyd' +pkgname=spotifyd +version=0.2.20 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="alsa-lib-devel libressl-devel pulseaudio-devel dbus-devel" +short_desc="Spotify client running as a UNIX daemon" +maintainer="Andrew Benson " +license="GPL-3.0-or-later" +homepage="https://github.com/Spotifyd/spotifyd" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=b76d15756f6024e6f0f288092a1dd6a65e39ee611966c5073e7e734c3058ead5 + +case "$XBPS_TARGET_MACHINE" in + aarch64-musl) broken="https://travis-ci.org/void-linux/void-packages/jobs/634735081" +esac + +export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" +export CC_${RUST_BUILD//-/_}="${BUILD_CC}" + +pre_configure() { + vsed -e 's/default = \[/& "dbus", "dbus-tokio", "pulseaudio_backend", "keyring", /' -i Cargo.toml +}