42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Description: Bluetooth Audio ALSA Backend (for users in "audio" group)
|
|
# URL: https://github.com/Arkq/bluez-alsa
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
# Depends on: bluez fdk-aac sbc
|
|
# Optional: lame libbsd libldac mpg123 python3-docutils
|
|
|
|
#@ .. via bluez: alsa-lib dbus
|
|
|
|
name=bluealsa
|
|
rname=bluez-alsa
|
|
version=4.0.0
|
|
release=2
|
|
source=(https://github.com/Arkq/${rname}/archive/\
|
|
v${version}/${rname}-${version}.tar.gz
|
|
bluealsa.rc bluealsa.conf)
|
|
|
|
build() {
|
|
cd ${rname}-${version}
|
|
|
|
cnf=--enable-aac
|
|
prt-get isinst libbsd >/dev/null 2>&1 && cnf=${cnf}' --enable-hcitop'
|
|
prt-get isinst lame >/dev/null 2>&1 && cnf=${cnf}' --enable-lame'
|
|
prt-get isinst libldac >/dev/null 2>&1 && cnf=${cnf}' --enable-ldac'
|
|
prt-get isinst mpg123 >/dev/null 2>&1 && cnf=${cnf}' --enable-mpg123'
|
|
prt-get isinst python3-docutils >/dev/null 2>&1 &&
|
|
cnf=${cnf}' --enable-manpages'
|
|
|
|
autoreconf --install --symlink
|
|
mkdir build && cd build
|
|
../configure --prefix=/usr --runstatedir=/run ${cnf}
|
|
make all
|
|
make DESTDIR="${PKG}" install
|
|
|
|
install -D -m 0755 "${SRC}"/bluealsa.rc "${PKG}"/etc/rc.d/${name}
|
|
install -D -m 0644 "${SRC}"/bluealsa.conf \
|
|
"${PKG}"/etc/dbus-1/system.d/${name}.conf
|
|
|
|
rm -rf "${PKG}"/usr/lib/alsa-lib/*.la
|
|
}
|
|
|
|
# s-sh-mode
|