# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=5.79.0 pkgrel=0 pkgdesc="Integration with su for elevated privileges" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-only" depends_dev="kcoreaddons-dev ki18n-dev kservice-dev kpty-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdesu-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang" # Since the goal of this library is to elevate privileges, suid being needed should be obvious options="suid" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums="f6f2e12a1aa904c5e8567e47a5aae038ee8237f87d3339a8d771b528d87ed8bbce1422e5a7217ce30aa79d5afa77b64cdd5bccaf8102479105342a313bc60f09 kdesu-5.79.0.tar.xz"