# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkgapi pkgver=19.08.0 pkgrel=0 pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API" arch="all !ppc64le !s390x" # limited by qt5-qtwebengine url="https://community.kde.org/KDE_PIM" license="LGPL-2.1-only OR LGPL-3.0-only" depends_dev="qt5-qtbase-dev qt5-qtwebengine-dev kio-dev kwindowsystem-dev kwallet-dev kcalcore-dev kcontacts-dev cyrus-sasl-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/libkgapi-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { # calendar-freebusyqueryjobtest is broken # tasks-taskfetchjobtest fails on the builders CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(tasks-taskfetchjobtest|calendar-freebusyqueryjobtest)" } package() { DESTDIR="$pkgdir" make install } sha512sums="2bcbef72d106057977dc81b6c77e0a558dbe75d24a7d728e6dea1a10e79ecbfa28fa41ea845e3332b6505030ab56dbee6dc0c796474aae426de73ef2a54d1e43 libkgapi-19.08.0.tar.xz"