# Template file for 'kf6-kmime'
# group=kde-frameworks
pkgname=kf6-kmime
version=6.29.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
 -DKDE_INSTALL_QMLDIR=lib/qt6/qml
 -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules python3 qt6-base qt6-tools gettext"
makedepends="kf6-kcodecs-devel kf6-ki18n-devel"
short_desc="Library for handling mail messages and newsgroup articles"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://community.kde.org/KDE_PIM"
distfiles="${KDE_SITE}/frameworks/${version%.*}/kmime-${version}.tar.xz"
checksum=86e838ff10c8b5867826bf2aff802bacf8c90dcfab67cad79d9cf2b0dbc215fc

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

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