# Maintainer: Bradley Saulteaux <-@bradso.to> pkgname=bluez-alsa pkgver=4.1.1 pkgrel=0 pkgdesc="Bluetooth Audio ALSA Backend" url="https://github.com/Arkq/bluez-alsa" arch="all" license="MIT" depends="bluez" subpackages="$pkgname-openrc $pkgname-utils" makedepends=" alsa-lib-dev autoconf automake bluez-dev dbus-dev fdk-aac-dev glib-dev libbsd-dev libtool ncurses-dev readline-dev sbc-dev " source="$pkgname-$pkgver.tar.gz::https://github.com/Arkq/bluez-alsa/archive/v$pkgver.tar.gz bluealsa.initd bluealsa.confd " prepare() { default_prepare autoreconf -fvi } build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ --host=$CHOST \ --build=$CBUILD \ --prefix=/usr \ --sysconfdir=/etc \ --enable-aac \ --enable-ofono \ --enable-cli \ --enable-rfcomm \ --enable-a2dpconf \ --enable-hcitop \ --disable-static \ --with-dbusconfdir=/usr/share/dbus-1/system.d make } check() { make check } package() { make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/bluealsa.initd "$pkgdir"/etc/init.d/bluealsa install -Dm644 "$srcdir"/bluealsa.confd "$pkgdir"/etc/conf.d/bluealsa } utils() { pkgdesc="Bluetooth Audio ALSA Backend utils" amove \ usr/bin/bluealsa-aplay \ usr/bin/bluealsa-cli \ usr/bin/bluealsa-rfcomm \ usr/bin/a2dpconf \ usr/bin/hcitop } sha512sums=" 5e43846af5c7c30a3d81a704514076a73b1d8994db5ee8925a59b1b328f684c15188d45caf9358f59e57a0c200d644dc673bd1c44f7d48a51452776e01f022f8 bluez-alsa-4.1.1.tar.gz 3a631e940cc56f3f7b9a49f5e69d057be08e876334d29ec9e0839ad80e8829d970e099d01f180a1e4fef237f324bcb16abdc702dbb6d0b46e3d318625e805cae bluealsa.initd ae50f9c39b8f725f793f362336d1823b1c20ebf877b1ae736601ef48e030b8c79094018d270e098476dc98ef888aae577e7a0ebda70451c3168d79c5e2baf859 bluealsa.confd "