# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kcalc pkgver=19.12.1 pkgrel=0 arch="all !armhf" # armhf blocked by extra-cmake-modules 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="8aa7fdb4bd1d9842f2e2036e3f94649328f9b5bc47b4c031aeb787cec0fdf28697ebf9f41cb60e120e59c38b44a2e6d366542ac9228abb859db6ec5eb28b4cf6 kcalc-19.12.1.tar.xz"