# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcontacts pkgver=5.67.0 pkgrel=1 pkgdesc="Address book API for KDE" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.0-or-later" depends="iso-codes" depends_dev="qt5-qtbase-dev kcoreaddons-dev ki18n-dev kconfig-dev kcodecs-dev" makedepends="$depends_dev extra-cmake-modules doxygen graphviz qt5-qttools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcontacts-$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="161668100eeb3791cec5fedc18cacb0f3acaa4ea550c7ec5d879a70bbf0930b2ea5049dfa0d31238cb7a5173afc681c959a8ea0606d0d8fc36c593338b0352ba kcontacts-5.67.0.tar.xz"