# Template file for 'kf6-kguiaddons'
pkgname=kf6-kguiaddons
version=6.10.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 wayland-devel pkg-config qt6-wayland-tools"
makedepends="qt6-wayland-devel plasma-wayland-protocols wayland-devel
 qt6-base-private-devel"
depends="kf6-kguiaddons-geo-uri-handler"
short_desc="Addons to QtGui"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kguiaddons"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=b3be04077313e559c5a8f66491d5d286cefe947aaf7c8937544ce85af4853ffa

kf6-kguiaddons-geo-uri-handler_package() {
	short_desc+=" - Geo URI handler"
	pkg_install() {
		vmove usr/share/applications
		vmove usr/bin/kde-geo-uri-handler
	}
}

kf6-kguiaddons-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} qt6-base-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/lib/pkgconfig
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
