# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcalc pkgver=19.08.0 pkgrel=0 arch="all" url="https://kde.org/applications/utilities/org.kde.kcalc" pkgdesc="Scientific Calculator" license="GPL-2.0-or-later" makedepends="extra-cmake-modules qt5-qtbase-dev kcrash-dev kconfig-dev kconfigwidgets-dev kdoctools-dev kguiaddons-dev ki18n-dev kinit-dev knotifications-dev kxmlgui-dev gmp-dev mpfr-dev" source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="4d07c3ddc07f0226f00b4f5bf76b042a4ee13dbfbd208f50c01c22a1580436207e1e5d7ee315c1359b740fee200e7f1b3738f38056745a2a64062de4876057a3 kcalc-19.08.0.tar.xz"