pkgname=bluez pkgver=5.75 pkgrel=1 pkgdesc="Libraries and tools for the Bluetooth protocol stack" url="https://www.bluez.org/" arch=('x86_64') license=('GPL2') depends=('libical' 'dbus' 'glib2' 'systemd' 'json-c' 'alsa-lib') makedepends=('libusb' 'python3-docutils' 'python3-pygments') optdepends=("cups: CUPS backend") options=('!libtool') backup=('etc/bluetooth/main.conf' 'etc/bluetooth/input.conf') install=bluez.install source=("https://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.xz" 'bluetooth.modprobe') sha256sums=('988cb3c4551f6e3a667708a578f5ca9f93fc896508f98f08709be4f8ab033c2f' '46c021be659c9a1c4e55afd04df0c059af1f3d98a96338236412e449bf7477b4') build() { cd ${pkgname}-${pkgver} #autoreconf -vfi ./configure --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib \ --enable-sixaxis \ --enable-library \ --enable-deprecated \ --enable-mesh \ --enable-hid2hci \ --enable-midi make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -dm755 ${pkgdir}/etc/bluetooth install -Dm644 src/main.conf ${pkgdir}/etc/bluetooth/main.conf install -Dm644 profiles/input/input.conf ${pkgdir}/etc/bluetooth/input.conf install -dm755 ${pkgdir}/usr/share/doc/${pkgname}/dbus-apis cp -a doc/*.txt ${pkgdir}/usr/share/doc/${pkgname}/dbus-apis/ install -dm755 ${pkgdir}/usr/lib/modprobe.d install -Dm644 ../bluetooth.modprobe ${pkgdir}/usr/lib/modprobe.d/bluetooth-usb.conf }