# Template file for 'kf6-kdesu'
# group=kde-frameworks
pkgname=kf6-kdesu
version=6.29.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext kf6-kconfig"
makedepends="kf6-kconfig-devel kf6-kcoreaddons-devel kf6-ki18n-devel
 kf6-kpty-devel qt6-base-private-devel"
short_desc="KDE User interface for running shell commands with root privileges"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kdesu"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=9c128248f6259ed8f6be8ab9fd670ab10efa9ab6b500429b98f7df25d169c312

# stage builds
makedepends+=" kf6-base"
shlib_requires="KDE_Frameworks.${version%.*}"

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