# Template file for 'kf6-kdoctools' pkgname=kf6-kdoctools version=6.8.0 revision=1 build_style=cmake build_helper=qemu hostmakedepends="extra-cmake-modules qt6-tools qt6-base gettext perl perl-URI docbook-xml docbook-xsl" makedepends="kf6-karchive-devel kf6-ki18n-devel libxslt-devel" depends="docbook-xml docbook-xsl" short_desc="KDE Create documentation from DocBook" maintainer="John " license="LGPL-2.1-or-later" homepage="https://invent.kde.org/frameworks/kdoctools" distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz" checksum=606863e86d6aa916abb3e3760b73fe9db1832c1e41727349d02cdc8c3ab96ba7 post_patch() { vsed -i -e ' s;[$]{CMAKE_INSTALL_DATAROOTDIR};usr/share; /find_path/s/$/ NO_CMAKE_FIND_ROOT_PATH/ ' cmake/FindDocBookXML4.cmake cmake/FindDocBookXSL.cmake } kf6-kdoctools-devel_package() { depends="$makedepends ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/cmake mkdir -p "${DESTDIR}/usr/lib/cmake/KF6DocTools" mv ${PKGDESTDIR}/usr/lib/cmake/KF6DocTools/KF6DocToolsTools* \ "${DESTDIR}/usr/lib/cmake/KF6DocTools" vmove "usr/lib/*.so" } }