# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=pimcommon pkgver=20.04.0 pkgrel=0 pkgdesc="Common lib for KDEPim" arch="all !armhf" url='https://community.kde.org/KDE_PIM' license="GPL-2.0-or-later" depends_dev="qt5-qtbase-dev karchive-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev ki18n-dev kiconthemes-dev kitemmodels-dev kjobwidgets-dev kio-dev knewstuff-dev kservice-dev kwidgetsaddons-dev kxmlgui-dev akonadi-dev akonadi-contacts-dev kcontacts-dev kimap-dev libkdepim-dev kpimtextedit-dev purpose-dev kmime-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/pimcommon-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_DESIGNERPLUGIN=ON make -C build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="4c1b0b447accaaf4307f7cb4bdaf6bc3cb93ff18666dc44ac5ccc826cb8f4263eacffc646558e44e86f293b48a5e14f1231e285155f59cec63af1d3d801a1418 pimcommon-20.04.0.tar.xz"