# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcontacts pkgver=18.12.2 pkgrel=0 pkgdesc="Address book API for KDE" arch="all" url="https://community.kde.org/KDE_PIM" license="LGPL-2.1" depends_dev="qt5-qtbase-dev kcoreaddons-dev ki18n-dev kconfig-dev kcodecs-dev" makedepends="$depends_dev extra-cmake-modules" source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" options="!check" # Requires running X11 server build() { cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir" CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="c5316952cc7b1cf51625af2318d03d6ab257f4dcaf9ee77cff2f754205af256c8e3ef757abb1eb605f25051cb3df86f9811b610f2581799113f0a6d32b164f3c kcontacts-18.12.2.tar.xz"