# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libksieve pkgver=19.12.3 pkgrel=0 pkgdesc="KDE PIM library for managing sieves" arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by qt5-qtwebengine url="https://kontact.kde.org/" license="GPL-2.0-only" depends_dev="qt5-qtbase-dev qt5-qtwebengine-dev ki18n-dev kdoctools-dev kio-dev kiconthemes-dev pimcommon-dev libkdepim-dev knewstuff-dev kwindowsystem-dev karchive-dev syntax-highlighting-dev kmime-dev kidentitymanagement-dev kmailtransport-dev kpimtextedit-dev kimap-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/libksieve-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { cd build # libksieveui-findbar-findbarbasetest, sieveeditorhelphtmlwidgettest and sieveeditor-autocreatescripts-sieveeditorgraphicalmodewidgettest require OpenGL CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(libksieveui-findbar-findbarbase|sieveeditorhelphtmlwidget|sieveeditor-autocreatescripts-sieveeditorgraphicalmodewidget)test" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="46fd159f8337e7e51948d12628a80a19fc8dfaeef0e56b97ad69afde54642f526477ca551cfc9ab4082236959c84619abf9984625a4e6f2ad6d14337a1d0464b libksieve-19.12.3.tar.xz"