# Template file for 'kf6-kpackage'
pkgname=kf6-kpackage
version=6.25.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base kf6-kdoctools
 gettext"
makedepends="kf6-karchive-devel kf6-kcoreaddons-devel kf6-ki18n-devel
 kf6-kdoctools-devel"
short_desc="Aplications to manage user installable packages of non-binary assets"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kpackage"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=bd465c0f1c11ec4c6767c985ebd144cc1efd6b6f249e7d19bf2cc04b956a663e

kf6-kpackage-devel_package() {
	depends="$makedepends ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		mkdir -p "${DESTDIR}/usr/lib/cmake/KF6Package"
		mv ${PKGDESTDIR}/usr/lib/cmake/KF6Package/KF6PackageTools* \
			"${DESTDIR}/usr/lib/cmake/KF6Package"
		vmove "usr/lib/*.so"
	}
}
