# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kunitconversion pkgver=9999_git1688827616 pkgrel=0 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 samurai" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kunitconversion-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc " options="net" # net required for tests build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest -j1 } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums=" 0e5dd3c227893d112770118b08fc74a39c3835170bd4878aad84f54d76fe1021d5736390d5c5c8f4cad67c6cd478682e1dfee74c3f3897e3bd50df204a863a5f kunitconversion-5.108.0.tar.xz " options="$options !strip"