# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkgapi pkgver=19.12.3 pkgrel=0 pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API" arch="all !ppc64le !s390x !armhf !mips !mips64" # 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" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { cd 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() { DESTDIR="$pkgdir" make -C build install } sha512sums="d9380e9756c6c96e955dcbfa1bc4b94f4024cd08be0a8204b74677cb3cc0fdc47ac100d661951b69db98f83fe16b2de1ded5ebb456cd9913cb8435ff0b20f845 libkgapi-19.12.3.tar.xz"