# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcompletion pkgver=5.66.0 pkgrel=0 pkgdesc="Text completion helpers and widgets" arch="all" 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=RelWithDebInfo \ -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="8adec48d62f5e8051e7f3c5b52c55a52a7a66d041536649fd7424d51ae9ee8ed16e4eae9070e9258fdd7797761af3be3550a4fba1e04090d251f676c91f59136 kcompletion-5.66.0.tar.xz"