# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=libksieve pkgver=23.04.3 pkgrel=1 pkgdesc="KDE PIM library for managing sieves" # armhf blocked by extra-cmake-modules # ppc64le, s390x and riscv64 blocked by qt5-qtwebengine arch="all !armhf !ppc64le !s390x !riscv64" url="https://kontact.kde.org/" license="GPL-2.0-only" depends_dev=" karchive-dev kdoctools-dev ki18n-dev kiconthemes-dev kidentitymanagement-dev kimap-dev kio-dev kmailtransport-dev kmime-dev knewstuff-dev kpimtextedit-dev kwindowsystem-dev libkdepim-dev pimcommon-dev qt5-qtbase-dev qt5-qtwebengine-dev syntax-highlighting-dev " makedepends="$depends_dev extra-cmake-modules samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/pim/libksieve.git" source="https://download.kde.org/stable/release-service/$pkgver/src/libksieve-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build 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" cmake --install build } sha512sums=" c8798b28720273ece854158c7b351c186e94fd7603acae3e6be19ce467ae4c8e70fc3b3444c442f220a899217101ae561d0d6afe52e52e9b9cd6309743c92073 libksieve-23.04.3.tar.xz "