# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=akonadi-search pkgver=19.04.2 pkgrel=0 pkgdesc="Libraries and daemons to implement searching in Akonadi" arch="all" url="https://community.kde.org/KDE_PIM" license="(GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)" depends_dev="qt5-qtbase-dev ki18n-dev kconfig-dev kcrash-dev kdbusaddons-dev kcmutils-dev kio-dev krunner-dev xapian-core-dev akonadi-dev kcontacts-dev kmime-dev akonadi-mime-dev kcalcore-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { # akonadi-sqlite-schedulertest and akonadi-sqlite-collectionindexingjobtest require running dbus server CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(akonadi-sqlite-scheduler|akonadi-sqlite-collectionindexingjob)test" } package() { DESTDIR="$pkgdir" make install } sha512sums="bd02c00b5d1a20a84ced6a3e60c7372a50fe7057bf9abf170172bf700930c35b4e345e2d22bc6e82cf78444d85defda3083ae03d4ecb2fa7298468d9cb1f0b2c akonadi-search-19.04.2.tar.xz"