# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdiagram pkgver=2.6.1 pkgrel=0 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 extra-cmake-modules doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/kdiagram/$pkgver/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="caa1f6f8bffb4b311224edfed115f189fa9c88e4b9d8bc9d4b7bc963c6b8c896813b438ad89fa9e91e4cde2f55ae822cfc7ba559bbdad517c60a037591dc5128 kdiagram-2.6.1.tar.xz"