From 5f97a827f5b6e7e9b2469d0ac5c3d1129a79896f Mon Sep 17 00:00:00 2001 From: maxice8 Date: Wed, 2 May 2018 16:52:55 -0300 Subject: [PATCH] New package: bluez-alsa-1.2.0. --- srcpkgs/bluez-alsa/files/bluez-alsa/run | 9 +++++++++ srcpkgs/bluez-alsa/template | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/bluez-alsa/files/bluez-alsa/run create mode 100644 srcpkgs/bluez-alsa/template diff --git a/srcpkgs/bluez-alsa/files/bluez-alsa/run b/srcpkgs/bluez-alsa/files/bluez-alsa/run new file mode 100644 index 0000000000..106d8c0062 --- /dev/null +++ b/srcpkgs/bluez-alsa/files/bluez-alsa/run @@ -0,0 +1,9 @@ +#!/bin/sh + +dir=/var/run/bluealsa +user=_bluez_alsa +group=_bluez_alsa + +[ ! -d "${dir}" ] && mkdir "${dir}" && chown $user:$group ${dir} +exec chpst -u $user:$group bluealsa + diff --git a/srcpkgs/bluez-alsa/template b/srcpkgs/bluez-alsa/template new file mode 100644 index 0000000000..e17254478c --- /dev/null +++ b/srcpkgs/bluez-alsa/template @@ -0,0 +1,25 @@ +# Template file for 'bluez-alsa' +pkgname=bluez-alsa +version=1.2.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 " +license="MIT" +homepage="https://github.com/Arkq/bluez-alsa" +distfiles="https://github.com/Arkq/bluez-alsa/archive/v${version}.tar.gz" +checksum=0a7a27e8cf135ec6bb30ea1a2365736681ced7d8293003c274fa78319f936838 +system_accounts="_bluez_alsa" + +pre_configure() { + autoreconf -fi +} + +post_install() { + vlicense LICENSE.txt + vsv bluez-alsa +}