# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcalc pkgver=19.12.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/release-service/$pkgver/src/kcalc-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="148424327d86b691e16ac4cf2a9842ae1003d212ba399ba0dad8e0c33c91f89326cdf2b1646bcb3a3c9a4fe9bdab74205770d93ff620a14fe0f92836aeab54b0 kcalc-19.12.0.tar.xz"