# Template file for 'networkmanager-qt5'
pkgname=networkmanager-qt5
version=5.115.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons extra-cmake-modules pkg-config qt5-host-tools qt5-devel"
makedepends="qt5-devel NetworkManager-devel"
depends="NetworkManager"
short_desc="Qt wrapper for NetworkManager API"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/networkmanager-qt"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname%5}-${version}.tar.xz"
checksum=1d92a7a295b0f311174cdc0414f3f188bca977d57cb6f6e8b261e59edbdaeb79

do_check() {
	cd build
	ctest -E 'managertest|settingstest|activeconnectiontest'
}

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