# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdiagram pkgver=2.8.0 pkgrel=1 pkgdesc="Powerful libraries (KChart, KGantt) for creating business diagrams" arch="all !armhf" url="https://kontact.kde.org/" license="GPL-2.0-or-later" depends_dev=" qt5-qtbase-dev qt5-qtsvg-dev qt5-qttools-dev " makedepends="$depends_dev doxygen extra-cmake-modules samurai " checkdepends="xvfb-run" source="https://download.kde.org/stable/kdiagram/$pkgver/kdiagram-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build # TestDrawIntoPainter times out CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "TestDrawIntoPainter" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums="d981bce4feeb65038772125e5af1c096537ec87991fdb93d9a91dd5c9f089b1001647c8a63b209683a67b2d7b3aadeb7dd6279261eefaf6b6e046d0ab72723ec kdiagram-2.8.0.tar.xz"