# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bluez-headers
pkgver=5.82
pkgrel=0
pkgdesc="Bluez development headers"
url="https://www.bluez.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="!bluez-dev"
source="https://www.kernel.org/pub/linux/bluetooth/bluez-$pkgver.tar.xz"
builddir="$srcdir/bluez-$pkgver"
options="!check" # just headers

package() {
	local headers="
		bluetooth
		bnep
		cmtp
		hci
		hci_lib
		hidp
		l2cap
		rfcomm
		sco
		sdp
		sdp_lib
		"
	for header in $headers; do
		install -Dm644 ./lib/$header.h -t "$pkgdir"/usr/include/bluetooth
	done
}

sha512sums="
8efbef24849f122cfe1b1b0dcedbc5369f97741603497099a673ff7be87af7935b8e0c8c58e10f6969372c8af932165d38a0c39e518501ba0d7e0c2fffb70bad  bluez-5.82.tar.xz
"
