# $Id: PKGBUILD 194652 2013-09-20 13:20:06Z tomegun $ # Maintainer: Tom Gundersen # Contributor: Andrea Scarpino # Contributor: Geoffroy Carrier pkgbase=bluez pkgname=('bluez' 'bluez-utils' 'bluez-libs') pkgver=5.9 pkgrel=1 url="http://www.bluez.org/" arch=('i686' 'x86_64' 'mips64el') license=('GPL2') makedepends=('dbus' 'libical' 'systemd') options=(!libtool) source=("http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2") build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib \ --enable-library # this is deprecated make } package_bluez() { pkgdesc="Daemons for the bluetooth protocol stack" depends=('libical' 'dbus' 'glib2') optdepends=("cups: CUPS backend") backup=('etc/dbus-1/system.d/bluetooth.conf') conflicts=('obexd-client' 'obexd-server') cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install ### split out bluez-utils rm -rf "$srcdir/_utils" install -dm755 "$srcdir"/_utils/usr/share/man mv "$pkgdir"/usr/share/man/man1 "$srcdir"/_utils/usr/share/man/ install -dm755 "$srcdir"/_utils/usr/bin mv "$pkgdir"/usr/bin/{bccmd,ciptool,hciattach,hciconfig,hcidump,hcitool,l2ping,l2test,rctest,rfcomm,sdptool}\ "$srcdir"/_utils/usr/bin/ install -dm755 "$srcdir"/_utils/usr/lib mv "$pkgdir"/usr/lib/udev "$srcdir"/_utils/usr/lib/ ### split out bluez-libs rm -rf "$srcdir/_libs" install -dm755 "$srcdir"/_libs/usr/lib/ mv "$pkgdir"/usr/lib/{pkgconfig,libbluetooth*} \ "$srcdir"/_libs/usr/lib/ mv "$pkgdir"/usr/include \ "$srcdir"/_libs/usr/ } package_bluez-libs() { pkgdesc="Deprecated libraries for the bluetooth protocol stack" depends=('glibc') mv "$srcdir/_libs"/* "$pkgdir" } package_bluez-utils() { pkgdesc="Development and debugging utilities for the bluetooth protocol stack" depends=('systemd') conflicts=('bluez-hcidump') provides=('bluez-hcidump') replaces=('bluez-hcidump' 'bluez<=4.101') mv "$srcdir/_utils"/* "$pkgdir" } md5sums=('6edaf60d09ee32942a739f80ea847db1')