# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcompletion pkgver=5.67.0 pkgrel=1 pkgdesc="Text completion helpers and widgets" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" depends_dev="kwidgetsaddons-dev kconfig-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcompletion-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="beaa0162744a20f74721ff41c643269a24937a5d51275ce01e406724a11c0b74b46b517defa6cd4ad709f3004c11ca7ef8b1e2b2a6665966b2439fd476c9c9aa kcompletion-5.67.0.tar.xz"