# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kmime pkgver=20.04.0 pkgrel=0 pkgdesc="Library for handling mail messages and newsgroup articles" arch="all !armhf" url="https://community.kde.org/KDE_PIM" license="LGPL-2.0-or-later" depends_dev="qt5-qtbase-dev ki18n-dev kcodecs-dev" makedepends="$depends_dev extra-cmake-modules" source="https://download.kde.org/stable/release-service/$pkgver/src/kmime-$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 # kmime-headertest and kmime-messagetest are broken CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kmime-(header|message)test" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="1d3f485ead53bdc0e9e8138fd2aab0a90bf7848306de857ffc933ab727e4804212d915e0148f5edb5a99f2e2c40652949b05d67e590b2ef96dbe0dbbc56456e5 kmime-20.04.0.tar.xz"