# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=pimcommon pkgver=18.12.0 pkgrel=0 pkgdesc='Common lib for KDEPim' arch="all" url='https://community.kde.org/KDE_PIM' license="GPL-2.0 LGPL-2.1" depends="" depends_dev="qt5-qtbase-dev karchive-dev kcodecs-dev kcompletion-dev kconfigwidgets-dev kdbusaddons-dev kiconthemes-dev kitemmodels-dev kjobwidgets-dev kio-dev knewstuff-dev akonadi-dev akonadi-contacts-dev kimap-dev libkdepim-dev kpimtextedit-dev" makedepends="$depends_dev extra-cmake-modules" source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" options="!check" # Requires running X11 server build() { cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir" CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="212d1d9e46e834dfa78d780bff0a39452960d98e2bb52743b512c62c15babec25adaae06b57d0c00b02fd7e35ce16090ae5594e2ecaf54b3093a2ba6efd1cf71 pimcommon-18.12.0.tar.xz"