2022-11-08 21:17:24 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2022-11-12 22:56:38 +00:00
|
|
|
# Copyright (C) 2022-present Marek Moeckel (wansti@discarded-ideas.org)
|
2023-01-17 11:54:34 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-11-08 21:17:24 +00:00
|
|
|
|
|
|
|
PKG_NAME="bluez-alsa"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="f7e6ee5"
|
2022-11-08 21:17:24 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://github.com/Arkq/bluez-alsa"
|
2023-01-17 12:39:19 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-11-12 08:47:36 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain alsa-lib bluez sbc dbus libopenaptx fdk-aac libldac"
|
2022-11-08 21:17:24 +00:00
|
|
|
PKG_LONGDESC="Bluetooth audio ALSA backend"
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
|
2022-11-10 21:39:25 +00:00
|
|
|
if build_with_debug; then
|
|
|
|
PKG_BLUEALSA_DEBUG=--with-debug
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_BLUEALSA_DEBUG} \
|
|
|
|
--enable-aptx \
|
2022-11-08 21:17:24 +00:00
|
|
|
--with-libopenaptx \
|
2022-11-12 08:47:36 +00:00
|
|
|
--enable-aac \
|
|
|
|
--enable-ldac \
|
2022-11-08 21:17:24 +00:00
|
|
|
--enable-upower \
|
|
|
|
--enable-a2dpconf \
|
2022-11-10 21:39:25 +00:00
|
|
|
--enable-cli \
|
|
|
|
--enable-systemd"
|
2022-11-08 21:17:24 +00:00
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2023-01-17 11:54:34 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/share/services
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/systemd/system
|
|
|
|
cp -P ${PKG_DIR}/default.d/*.conf ${INSTALL}/usr/share/services/
|
|
|
|
cp -P ${PKG_DIR}/system.d/*.service ${INSTALL}/usr/lib/systemd/system/
|
|
|
|
|
|
|
|
# workaround until I figure out how to query this directory
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/alsa-lib
|
|
|
|
cp -P ${PKG_BUILD}/.*/src/asound/.libs/*.so ${INSTALL}/usr/lib/alsa-lib/
|
|
|
|
sed -i ${INSTALL}/etc/dbus-1/system.d/bluealsa.conf -e "s|audio|root|g"
|
|
|
|
rm -rf ${INSTALL}/home
|
2022-11-08 21:17:24 +00:00
|
|
|
}
|
2022-11-10 21:39:25 +00:00
|
|
|
|
|
|
|
post_install() {
|
2023-01-19 11:14:52 +00:00
|
|
|
#enable_service bluealsa.service
|
2023-08-09 10:29:28 +00:00
|
|
|
#enable_service bluealsa-defaults.service
|
2022-11-10 21:39:25 +00:00
|
|
|
}
|