# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kde-cli-tools pkgver=5.27.6 pkgrel=0 pkgdesc="Tools based on KDE Frameworks 5 to better interact with the system" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://invent.kde.org/plasma/kde-cli-tools" license="(GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND GPL-2.0-only AND LGPL-2.1-only" makedepends=" extra-cmake-modules kactivities-dev kcmutils-dev kconfig-dev kdeclarative-dev kdesu-dev kdoctools-dev ki18n-dev kiconthemes-dev kinit-dev kio-dev kservice-dev kwindowsystem-dev plasma-workspace-dev qt5-qtbase-dev qt5-qtsvg-dev qt5-qtx11extras-dev samurai " checkdepends="xvfb-run" case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac source="https://download.kde.org/$_rel/plasma/$pkgver/kde-cli-tools-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" options="!check" # Broken # Workaround a circular dependency https://gitlab.alpinelinux.org/alpine/aports/-/issues/11785 install_if="plasma-workspace" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 14e8e5621c2886d8a48fda149ec2e87b5223a0d74447e13f72cb0a0fa93fdf7793a8526ff8b050bcec711f999575b7b298d85a014f36e3716bf86a49d4b317cf kde-cli-tools-5.27.6.tar.xz "