# Template file for 'kf6-ktexteditor'
# group=kde-frameworks
pkgname=kf6-ktexteditor
version=6.28.0
revision=1
build_style=cmake
configure_args="
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base kf6-kauth-tools
 qt6-declarative-host-tools gettext kf6-kconfig"
makedepends="kf6-karchive-devel kf6-kauth-devel kf6-kconfig-devel
 kf6-kguiaddons-devel kf6-ki18n-devel kf6-kio-devel kf6-kxmlgui-devel
 kf6-kparts-devel kf6-sonnet-devel kf6-syntax-highlighting-devel
 kf6-ktextwidgets-devel qt6-speech-devel qt6-multimedia-devel
 qt6-speech-plugin-flite qt6-speech-plugin-mock qt6-speech-plugin-speechd
 editorconfig-devel"
short_desc="KDE Full text editor component"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/ktexteditor"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=63b7bbd9325cfda64e2c8f862e2327270ef7a9d1f887b5c6585f372511d33f8d

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

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