2020-01-10 14:55:23 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# spotifyd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-10-14 09:56:14 +02:00
|
|
|
SPOTIFYD_VERSION = ddfcbb2eecd3b5be94533f7374180df412659b4e
|
2022-05-12 10:46:41 +02:00
|
|
|
SPOTIFYD_SITE = $(call github,Spotifyd,spotifyd,$(SPOTIFYD_VERSION))
|
2020-01-10 14:55:23 +01:00
|
|
|
SPOTIFYD_LICENSE = GPL-3.0
|
|
|
|
SPOTIFYD_LICENSE_FILES = LICENSE
|
|
|
|
|
2022-05-12 10:46:41 +02:00
|
|
|
SPOTIFYD_DEPENDENCIES = host-rustc host-pkgconf
|
2020-01-10 14:55:23 +01:00
|
|
|
|
2022-05-12 10:46:41 +02:00
|
|
|
SPOTIFYD_CARGO_ENV = \
|
|
|
|
PKG_CONFIG_ALLOW_CROSS=1 \
|
|
|
|
OPENSSL_LIB_DIR=$(HOST_DIR)/lib \
|
|
|
|
OPENSSL_INCLUDE_DIR=$(HOST_DIR)/include
|
2020-01-10 14:55:23 +01:00
|
|
|
|
2022-05-12 10:46:41 +02:00
|
|
|
SPOTIFYD_BIN_DIR = target/$(RUSTC_TARGET_NAME)/release
|
2020-01-10 14:55:23 +01:00
|
|
|
|
2022-05-12 10:46:41 +02:00
|
|
|
SPOTIFYD_CARGO_BUILD_OPTS = --no-default-features \
|
|
|
|
--features=pulseaudio_backend,dbus_keyring,dbus_mpris
|
2020-01-10 14:55:23 +01:00
|
|
|
|
|
|
|
define SPOTIFYD_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$(SPOTIFYD_BIN_DIR)/spotifyd \
|
|
|
|
$(TARGET_DIR)/usr/bin/spotifyd
|
2020-10-06 21:23:38 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/spotifyd/spotifyd.conf \
|
2020-01-10 14:55:23 +01:00
|
|
|
$(TARGET_DIR)/etc/spotifyd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SPOTIFYD_INSTALL_INIT_SYSTEMD
|
2020-10-06 21:23:38 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/spotifyd/spotifyd.service \
|
2020-01-10 14:55:23 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/spotifyd.service
|
|
|
|
endef
|
|
|
|
|
2022-05-12 10:46:41 +02:00
|
|
|
$(eval $(cargo-package))
|