# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkgapi pkgver=19.12.1 pkgrel=0 pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API" arch="all !ppc64le !s390x !armhf" # 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="7f6731b437c94a961c3c3a0c726e39080be27488343ecc065e39201bf288a56db6e0ff0076b9539a9e3960617eeb9d8f3b6fa1947acc2860fb738d8f062ac841 libkgapi-19.12.1.tar.xz"