void-packages/srcpkgs/kf6-kconfig/template

36 lines
1.1 KiB
Bash

# Template file for 'kf6-kconfig'
pkgname=kf6-kconfig
version=6.3.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-base qt6-tools
qt6-declarative-host-tools"
makedepends="qt6-declarative-devel"
short_desc="KDE Persistent platform-independent application settings"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kconfig"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=8d809aaf7b5151ecd797c601c7f2701bc426b66d431b52069c7ff3b4002d7979
do_check() {
cd build
# disable failing tests
ctest -E "kconfigcore-kconfigtest|kconfiggui-kstandardshortcutwatchertest"
}
kf6-kconfig-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/KF6Config"
mv ${PKGDESTDIR}/usr/lib/cmake/KF6Config/KF6ConfigCompiler* \
"${DESTDIR}/usr/lib/cmake/KF6Config"
vmove "usr/lib/*.so"
}
}