# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=mailcommon pkgver=20.08.2 pkgrel=0 pkgdesc="KDE PIM library providing support for mail applications" arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by messagelib -> qt5-qtwebengine url="https://kontact.kde.org/" license="GPL-2.0-or-later" depends_dev="qt5-qtbase-dev qt5-qttools-dev karchive-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev ki18n-dev kiconthemes-dev kitemmodels-dev kitemviews-dev kio-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev kdbusaddons-dev syntax-highlighting-dev akonadi-dev akonadi-mime-dev libkdepim-dev mailimporter-dev kmailtransport-dev messagelib-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" 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 \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="15571f5011c9134e0c6e88c21277a2e5e9d278dc34817ad7fde4f36dfaaaee8c527bcdc0abc324787fe85963d3960165d6cb4694ad414bfe0d8ef4db48c2a52b mailcommon-20.08.2.tar.xz"