blob: d92969e9a8d452445c5fdc4963662d77c735cd29 (
plain)
1 # Description: Bluetooth Audio ALSA Backend (for users in "audio" group)
2 # URL: https://github.com/Arkq/bluez-alsa
3 # Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
4 # Depends on: bluez fdk-aac sbc
5 # Optional: lame libbsd libldac mpg123 python3-docutils
6
7 #@ .. via bluez: alsa-lib dbus
8
9 name=bluealsa
10 rname=bluez-alsa
11 version=3.1.0
12 release=2
13 source=(https://github.com/Arkq/${rname}/archive/\
14 v${version}/${rname}-${version}.tar.gz
15 bluealsa.rc bluealsa.conf)
16
17 build() {
18 cd ${rname}-${version}
19
20 cnf=--enable-aac
21 prt-get isinst libbsd >/dev/null 2>&1 && cnf=${cnf}' --enable-hcitop'
22 prt-get isinst lame >/dev/null 2>&1 && cnf=${cnf}' --enable-lame'
23 prt-get isinst libldac >/dev/null 2>&1 && cnf=${cnf}' --enable-ldac'
24 prt-get isinst mpg123 >/dev/null 2>&1 && cnf=${cnf}' --enable-mpg123'
25 prt-get isinst python3-docutils >/dev/null 2>&1 &&
26 cnf=${cnf}' --enable-manpages'
27
28 autoreconf --install --symlink
29 mkdir build && cd build
30 ../configure --prefix=/usr --runstatedir=/run ${cnf}
31 make all
32 make DESTDIR="${PKG}" install
33
34 install -D -m 0755 "${SRC}"/bluealsa.rc "${PKG}"/etc/rc.d/${name}
35 install -D -m 0644 "${SRC}"/bluealsa.conf \
36 "${PKG}"/etc/dbus-1/system.d/${name}.conf
37 }
38
39 # s-sh-mode
|