Subject: [alpine-aports] [PATCH] main/bluez: enable bluetooth mesh support

From: Ricardo Salveti <[email-masked]>
Date: Wed, 20 Sep 2017 01:02:15 -0300

Build and install 'meshctl', which can be used to provision and
interact with Bluetooth Mesh networks. json-c-dev was added to
makedepends, as it is required by meshctl.

Signed-off-by: Ricardo Salveti <[email-masked]>
---
 main/bluez/APKBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main/bluez/APKBUILD b/main/bluez/APKBUILD
index dc4fd98036..d6c5a75d5f 100644
--- a/main/bluez/APKBUILD
+++ b/main/bluez/APKBUILD
@@ -1,14 +1,14 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=bluez
 pkgver=5.47
-pkgrel=0
+pkgrel=1
 pkgdesc="Tools for the Bluetooth protocol stack"
 url="http://www.bluez.org/"
 arch="all"
 license="GPL2+"
 depends="consolekit2 dbus"
 replaces="udev"
-makedepends="dbus-dev libusb-compat-dev eudev-dev
+makedepends="dbus-dev libusb-compat-dev eudev-dev json-c-dev
 	libical-dev readline-dev glib-dev linux-headers
 	autoconf automake libtool"
 subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-cups
@@ -38,6 +38,7 @@ build() {
 		--disable-systemd \
 		--enable-library \
 		--enable-deprecated \
+		--enable-mesh \
 		|| return 1
 	make || return 1
 }
-- 
2.14.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Natanael Copa <[email-masked]>
Date: Wed, 20 Sep 2017 09:42:10 +0200

On Wed, 20 Sep 2017 01:02:15 -0300

> makedepends, as it is required by meshctl.

I applied this and splitted up the package a bit so meshctl is provided
via subpackage (bluez-meshctl).

I also moved obexd, btmon and bccmd into their own subpackages. Totally
the main bluez package went down from 3MB to 1.6MB.

Thank you!

-nc

---