34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'spotifyd'
|
|
pkgname=spotifyd
|
|
version=0.3.5
|
|
revision=2
|
|
archs="x86_64* i686* aarch64* arm*" # ring
|
|
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"
|
|
changelog="https://raw.githubusercontent.com/Spotifyd/spotifyd/master/CHANGELOG.md"
|
|
distfiles="https://github.com/Spotifyd/spotifyd/archive/v${version}.tar.gz"
|
|
checksum=59103f7097aa4e2ed960f1cc307ac8f4bdb2f0067aad664af32344aa8a972df7
|
|
|
|
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
|