void-packages/srcpkgs/bluez-alsa/template

32 lines
873 B
Bash

# Template file for 'bluez-alsa'
pkgname=bluez-alsa
version=2.1.0
revision=1
build_style=gnu-configure
configure_args="--enable-aac --disable-hcitop --enable-debug"
hostmakedepends="pkg-config automake libtool"
makedepends="alsa-lib-devel fdk-aac-devel libbluetooth-devel libglib-devel
ortp-devel sbc-devel"
short_desc="Bluetooth Audio ALSA Backend"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="MIT"
homepage="https://github.com/Arkq/bluez-alsa"
distfiles="https://github.com/Arkq/bluez-alsa/archive/v${version}.tar.gz"
checksum=6459f70e47e70b4c04a85acf148381e6c8a2e86bd638aff21870afc6c14b85b0
system_accounts="_bluez_alsa"
_bluez_alsa_groups="audio"
CFLAGS="-fcommon"
pre_configure() {
autoreconf -fi
}
post_install() {
vsed -i ${DESTDIR}/etc/dbus-1/system.d/bluealsa.conf \
-e 's:user="root":user="_bluez_alsa":'
vlicense LICENSE
vsv bluez-alsa
}