# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kunitconversion pkgver=5.67.0 pkgrel=1 pkgdesc="Support for unit conversion" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" depends_dev="qt5-qtbase-dev ki18n-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kunitconversion-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="04e6c5a96588980c16f1aa5fe88f009c1416f6ad65d333da28f8bd88e6a8541ff61071a1eff95ac66e0b8f835130645f406ed3bf5ab6938ce876b51ec67e73ac kunitconversion-5.67.0.tar.xz"