void-packages/srcpkgs/kf6-kconfig/template

36 lines
1.1 KiB
Bash

# Template file for 'kf6-kconfig'
pkgname=kf6-kconfig
version=6.6.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=070bd019b07e15201e4c7072b71337c75f6917407406a1a7107fca1bff2855fe
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"
}
}