# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkgapi pkgver=19.12.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 kcalendarcore-dev kcontacts-dev cyrus-sasl-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/libkgapi-$pkgver.tar.xz" subpackages="$pkgname-dev $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 make } check() { cd "$builddir"/build # calendar-freebusyqueryjobtest is broken # tasks-taskfetchjobtest fails on the builders CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(tasks-taskfetchjobtest|calendar-freebusyqueryjobtest)" } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="74c2f03be10d85d2043fdffe9080e1ef3f01863dfef1dbd13c405ef5543ff6887933aa7bddfec519275e8bad7f31d0e651cf8445f84d6d8cf3ec11336ce9dea5 libkgapi-19.12.0.tar.xz"