# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcalutils pkgver=20.04.0 pkgrel=0 pkgdesc="The KDE calendar utility library" arch="all !armhf" url="https://api.kde.org/kdepim/kcalutils/html" license="LGPL-2.0-or-later" depends_dev="kcoreaddons-dev kconfig-dev ki18n-dev kcodecs-dev kwidgetsaddons-dev kconfigwidgets-dev kiconthemes-dev grantlee-dev kcalendarcore-dev kidentitymanagement-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/kcalutils-$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 # kcalutils-testincidenceformatter is broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kcalutils-testincidenceformatter" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="b3e4db091915d91629afacac087a465439a609c6b5e81982cf9d654c78e49fb96520b1024926f940f12cdae6b6f753f6155e3444475b3cc23541f392ce64ba47 kcalutils-20.04.0.tar.xz"