# Template file for 'kf6-ktextwidgets'
# group=kde-frameworks
pkgname=kf6-ktextwidgets
version=6.28.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext kf6-kconfig"
makedepends="kf6-kcompletion-devel kf6-kconfig-devel kf6-kconfigwidgets-devel
 qt6-speech-devel qt6-multimedia-devel qt6-speech-plugin-flite
 qt6-speech-plugin-mock qt6-speech-plugin-speechd kf6-sonnet-devel"
short_desc="KDE Text editing widgets"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/ktextwidgets"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=b995613588aa68c20872e2e3c173083d6e8139e91852e0e7a29bd3ae7dee67e9

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

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