# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=5.67.0 pkgrel=1 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" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="8ea63328e05308736368d7d011691ea942a50554e3faef1c23155bb5d449767e6d21787e45ed1bf6dddaf063016fd7730e46ec14b56796ac1139a4cc9b529ad5 kdesu-5.67.0.tar.xz"