# Template file for 'kinit'
pkgname=kinit
version=5.50.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules libcap-progs pkg-config"
makedepends="kio-devel kdoctools-devel libcap-devel"
short_desc="Helper library to speed up start of applications on KDE workspaces"
maintainer="John <johnz@posteo.net>"
license="LGPL-2.0-only"
homepage="https://projects.kde.org/projects/frameworks/kinit"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=912c278141c30b4123c39773117971a4f8bdc1b3fc82061bb36dea80daa6ead1

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools"
fi

kinit-devel_package() {
	short_desc+=" - development"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/lib/cmake
	}
}
