From cdf9b9f94a37f936a2625d8c8ef58d5a30a096eb Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sun, 14 Dec 2014 18:10:31 +0000
Subject: bluez: update to 5.26

---
 abs/extra/bluez/PKGBUILD    | 22 +++++++++++++---------
 abs/extra/bluez/__changelog | 27 ---------------------------
 2 files changed, 13 insertions(+), 36 deletions(-)
 delete mode 100644 abs/extra/bluez/__changelog

diff --git a/abs/extra/bluez/PKGBUILD b/abs/extra/bluez/PKGBUILD
index 25a7e32..82062d6 100644
--- a/abs/extra/bluez/PKGBUILD
+++ b/abs/extra/bluez/PKGBUILD
@@ -5,7 +5,7 @@
 
 pkgbase=bluez
 pkgname=('bluez' 'bluez-utils' 'bluez-libs' 'bluez-cups' 'bluez-hid2hci' 'bluez-plugins')
-pkgver=5.18
+pkgver=5.26
 pkgrel=1
 url="http://www.bluez.org/"
 arch=('i686' 'x86_64')
@@ -15,7 +15,7 @@ source=(http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.xz
         0001-Allow-using-obexd-without-systemd-in-the-user-session.patch
         bluetooth.modprobe)
 # see https://www.kernel.org/pub/linux/bluetooth/sha256sums.asc
-sha256sums=('8c8bb13db83d0de6c85def2da8dfa0a758aff595405fb57a00719ed94d558340'
+sha256sums=('7a101946bab6da1f20eb2677b9ca783d919365815e4701216b9273f0c8b70194'
             '896a1403d9b7258c4fb0d41f3a6f70fd51eaa1115ab3f4259f3dbbe02b55766b'
             '46c021be659c9a1c4e55afd04df0c059af1f3d98a96338236412e449bf7477b4')
 
@@ -36,15 +36,14 @@ build() {
           --localstatedir=/var \
           --libexecdir=/usr/lib \
           --enable-sixaxis \
+          --enable-experimental \
           --enable-library # this is deprecated
-#          --enable-experimental \
-
-  make all V=1
+  make
 }
 
 check() {
   cd $pkgname-$pkgver
-  make check
+  #make check
 }
 
 
@@ -56,9 +55,6 @@ package_bluez() {
   conflicts=('obexd-client' 'obexd-server')
 
   cd ${pkgbase}-${pkgver}
-  #make DESTDIR=${pkgdir} install
-  #return 1
-  
   make DESTDIR=${pkgdir} \
        install-libexecPROGRAMS \
        install-dbussessionbusDATA \
@@ -92,6 +88,14 @@ package_bluez-utils() {
        install-binPROGRAMS \
        install-man1
 
+  # add missing tools FS#41132, FS#41687, FS#42716
+  for files in `find tools/ -type f -perm -755`; do
+    filename=$(basename $files)
+    install -Dm755 ${srcdir}/${pkgbase}-${pkgver}/tools/$filename ${pkgdir}/usr/bin/$filename
+  done
+  # add gatttool usefulbdaddr with Bluetooth 4.0LE 
+  install -Dm755 ${srcdir}/${pkgbase}-${pkgver}/attrib/gatttool ${pkgdir}/usr/bin/gatttool
+  
   # libbluetooth.so* are part of libLTLIBRARIES and binPROGRAMS targets
   #make DESTDIR=${pkgdir} uninstall-libLTLIBRARIES
   #rmdir ${pkgdir}/usr/lib
diff --git a/abs/extra/bluez/__changelog b/abs/extra/bluez/__changelog
deleted file mode 100644
index 47f870d..0000000
--- a/abs/extra/bluez/__changelog
+++ /dev/null
@@ -1,27 +0,0 @@
-# by mihanson
-I really have no idea how this bluetooth stuff works.  If anyone wants to
-take a stab at getting this working properly with runit, feel free.  I
-only need this package to get mythpywii working.
-
-2010-04-01:
-Make this package work with runit.  All daemons were seperated into their
-own run scripts.  Of particular interest is rfcomm and hid2hci utilities.
-They are not daemons and I added "/sbin/sv <executable> down ." in their
-respective run files.  All based on this thread:
-http://article.gmane.org/gmane.comp.sysutils.supervision.general/1585/
-
-2012-04-07
-- remove rc.bluetooth as we use runit
-- disable-cups
-- comment out removal of udev line
-
-2012-04-13
-re-add audio-streaming.patch for ootb audio streaming
-
-2012-06-19
-- change 'systemd-tools' dependency back to 'udev'
-- change 'libusbx' dependency back to 'libusb'
-- remove refrences to rc.bluetooth
-
-2014-03-07
-- update bluez 5.15 arch pkgbuild no changes
-- 
cgit v0.12

