# Template file for 'bluez'
pkgname=bluez
version=5.6
revision=1
build_style=gnu-configure
configure_args="--with-udevdir=/usr/lib/udev
 --with-systemdsystemunitdir=/usr/lib/systemd/system
 --enable-pie --enable-threads --enable-library"
hostmakedepends="pkg-config flex"
makedepends="libglib-devel libudev-devel>=183 dbus-devel systemd-devel
 libusb-compat-devel>=0.1.5_2 cups-devel libical-devel readline-devel"
short_desc="Bluetooth tools and daemons"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.bluez.org/"
license="GPL-2"
distfiles="${KERNEL_SITE}/bluetooth/$pkgname-$version.tar.xz"
checksum=feef22586e1aac28f61ba22ae836fab7a758501395a532e1a009c50e03de1789
long_desc="
 This package contains tools and system daemons for using Bluetooth devices.

 BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source
 project distributed under GNU General Public License (GPL)."

libbluetooth_package() {
	short_desc="Library to use the Bluez Linux Bluetooth Stack"
	pkg_install() {
		vmove "usr/lib/libbluetooth.so.*"
	}
}

libbluetooth-devel_package() {
	depends="libbluetooth-${version}_${revision}"
	short_desc="Development files to use the BlueZ Linux Bluetooth library"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}

bluez_package() {
	pkg_install() {
		vmove all
	}
}
