# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=9999_git1663420106 pkgrel=0 pkgdesc="Integration with su for elevated privileges" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://community.kde.org/Frameworks" license="LGPL-2.1-only" depends_dev=" kcoreaddons-dev ki18n-dev kpty-dev kservice-dev " makedepends="$depends_dev doxygen extra-cmake-modules qt5-qttools-dev samurai " checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdesu-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" # Since the goal of this library is to elevate privileges, suid being needed should be obvious options="suid" [ "$CARCH" = "ppc64le" ] && options="$options !check" # kdesutest is broken 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 xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 0e6b7a52822dbde4ca88df91f4112605b9099a5ec10d547f74e945dbcc56a9cd8469c11923c7ce73c1debefa91e37c7cf8bc2bb1b4f1dc0f613361e0cb7f50c5 kdesu-5.98.0.tar.xz "