# 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=mailcommon pkgver=23.04.3 pkgrel=1 pkgdesc="KDE PIM library providing support for mail applications" # riscv64 disabled due to missing rust in recursive dependency arch="all !ppc64le !s390x !armhf !riscv64" # Limited by messagelib -> qt5-qtwebengine url="https://kontact.kde.org/" license="GPL-2.0-or-later" # TODO: Consider replacing gnupg with specific gnupg subpackages that mailcommon really needs. depends="gnupg" depends_dev=" akonadi-dev akonadi-mime-dev karchive-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kdbusaddons-dev ki18n-dev kiconthemes-dev kio-dev kitemmodels-dev kitemviews-dev kmailtransport-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev libkdepim-dev mailimporter-dev messagelib-dev qt5-qtbase-dev qt5-qttools-dev syntax-highlighting-dev " makedepends=" $depends_dev extra-cmake-modules samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/pim/mailcommon.git" source="https://download.kde.org/stable/release-service/$pkgver/src/mailcommon-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" options="!check" # Requires running dbus server build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 7095af13f822a5b8ff4df4ced6be504d19ac7d655703ad0ce43d993ecb34ee19e0b397ac2e0a30adf41ee7e85392eb58fe81c6610e52ca714c47a097f25ac2d1 mailcommon-23.04.3.tar.xz "