# Template file for 'kf6-bluez-qt'
pkgname=kf6-bluez-qt
version=6.10.0
revision=1
build_style=cmake
configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 qt6-declarative-host-tools"
makedepends="qt6-declarative-devel"
checkdepends="dbus"
short_desc="Qt wrapper for Bluez 5 DBus API"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/bluez-qt"
#changelog=""
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=62a47b7705625d6eba82d264f5fa42820fffafc8def65c9cd00640b4737c822d

do_check() {
	cd build
	dbus-run-session ctest -E "bluezqt-managertest"
}

kf6-bluez-qt-devel_package() {
	depends="$makedepends ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
