2018-06-01 08:08:14 -04:00
|
|
|
# Maintainer: twa022 <twa022 at gmail dot com>
|
|
|
|
# Contributor: David Thurstenson <thurstylark@gmail.com>
|
2017-04-17 21:52:40 -04:00
|
|
|
# Contributor: Tom Gundersen <teg@jklm.no>
|
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
|
|
|
|
|
|
|
|
pkgname='bluez-utils-compat'
|
|
|
|
_pkgbase='bluez'
|
2018-06-19 16:31:21 -04:00
|
|
|
pkgver=5.50
|
2017-04-17 21:52:40 -04:00
|
|
|
pkgrel=1
|
|
|
|
url="http://www.bluez.org/"
|
2018-06-19 16:31:21 -04:00
|
|
|
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm' 'aarch64')
|
2017-04-17 21:52:40 -04:00
|
|
|
license=('GPL2')
|
|
|
|
pkgdesc="Development and debugging utilities for the bluetooth protocol stack. Includes deprecated tools."
|
|
|
|
depends=('dbus' 'systemd' 'glib2')
|
|
|
|
conflicts=('bluez-hcidump' 'bluez-utils')
|
|
|
|
provides=('bluez-hcidump' 'bluez-utils')
|
|
|
|
replaces=('bluez-hcidump' 'bluez<=4.101')
|
|
|
|
makedepends=('dbus' 'libical' 'systemd')
|
2018-06-19 16:31:21 -04:00
|
|
|
source=("https://www.kernel.org/pub/linux/bluetooth/${_pkgbase}-${pkgver}.tar."{xz,sign}
|
|
|
|
'refresh_adv_manager_for_non-LE_devices.diff::https://git.archlinux.org/svntogit/packages.git/tree/trunk/refresh_adv_manager_for_non-LE_devices.diff?h=packages/bluez')
|
2017-04-17 21:52:40 -04:00
|
|
|
# see https://www.kernel.org/pub/linux/bluetooth/sha256sums.asc
|
2018-06-19 16:31:21 -04:00
|
|
|
sha256sums=('5ffcaae18bbb6155f1591be8c24898dc12f062075a40b538b745bfd477481911'
|
|
|
|
'SKIP'
|
|
|
|
'fa391d4a5a3946413aae99dd196a58db9de75f07526915b70e67f915af3cd268')
|
2017-04-17 21:52:40 -04:00
|
|
|
validpgpkeys=('E932D120BC2AEC444E558F0106CA9F5D1DCF2659') # Marcel Holtmann <marcel@holtmann.org>
|
|
|
|
|
2018-06-19 16:31:21 -04:00
|
|
|
prepare() {
|
|
|
|
cd "${_pkgbase}-${pkgver}"
|
|
|
|
patch -Np1 -i ../refresh_adv_manager_for_non-LE_devices.diff
|
|
|
|
}
|
|
|
|
|
2017-04-17 21:52:40 -04:00
|
|
|
build() {
|
2018-06-01 08:08:14 -04:00
|
|
|
cd "${_pkgbase}-${pkgver}"
|
2017-04-17 21:52:40 -04:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--enable-sixaxis \
|
|
|
|
--enable-experimental \
|
|
|
|
--enable-library \
|
|
|
|
--enable-deprecated # to enable deprectated tools
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2018-06-01 08:08:14 -04:00
|
|
|
cd "${_pkgbase}-${pkgver}"
|
2017-04-17 21:52:40 -04:00
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-06-01 08:08:14 -04:00
|
|
|
cd "${_pkgbase}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" \
|
2017-04-17 21:52:40 -04:00
|
|
|
install-binPROGRAMS \
|
|
|
|
install-man1
|
|
|
|
|
|
|
|
# add missing tools FS#41132, FS#41687, FS#42716
|
|
|
|
for files in `find tools/ -type f -perm -755`; do
|
2018-06-01 08:08:14 -04:00
|
|
|
filename="$(basename "$files")"
|
|
|
|
install -Dm755 "${srcdir}/${_pkgbase}-${pkgver}"/tools/$filename "${pkgdir}"/usr/bin/$filename
|
2017-04-17 21:52:40 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
# add gatttool usefulbdaddr with Bluetooth 4.0LE
|
2018-06-01 08:08:14 -04:00
|
|
|
install -Dm755 "${srcdir}/${_pkgbase}-${pkgver}"/attrib/gatttool "${pkgdir}"/usr/bin/gatttool
|
2017-04-17 21:52:40 -04:00
|
|
|
|
|
|
|
# libbluetooth.so* are part of libLTLIBRARIES and binPROGRAMS targets
|
|
|
|
#make DESTDIR=${pkgdir} uninstall-libLTLIBRARIES
|
|
|
|
#rmdir ${pkgdir}/usr/lib
|
2018-06-01 08:08:14 -04:00
|
|
|
rm -rf "${pkgdir}"/usr/lib
|
2017-04-17 21:52:40 -04:00
|
|
|
|
|
|
|
# move the hid2hci man page out
|
2018-06-01 08:08:14 -04:00
|
|
|
mv "${pkgdir}"/usr/share/man/man1/hid2hci.1 "${srcdir}"/
|
2017-04-17 21:52:40 -04:00
|
|
|
}
|