# Template file for 'kf6-kfilemetadata'
pkgname=kf6-kfilemetadata
version=6.8.0
revision=1
build_style=cmake
configure_args="-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
 gettext pkg-config"
makedepends="qt6-base-devel kf6-kcodecs-devel kf6-ki18n-devel kf6-karchive-devel
 kf6-kcoreaddons-devel kf6-kconfig-devel attr-devel taglib-devel libqmobipocket6-devel
 exiv2-devel ffmpeg6-devel ebook-tools-devel poppler-qt6-devel"
short_desc="Library for extracting file metadata"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kfilemetadata"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=50466b3699bbe3017edb0c3cb09463a57e2dd3b66d60f5f610d9ee3a21e34894

do_check() {
	cd build
	# Skip failing tests
	ctest -E "usermetadatawritertest"
}

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