# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=5.59.0 pkgrel=0 pkgdesc="Integration with su for elevated privileges" arch="all" 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%.*}/$pkgname-$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 \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="48310a62eff32735afcca4b5afa2ca61bfe89c019ed52fefb09a2c3eecfa57a85cbd0039014f95929b6b74b52b150085e13ec37fc2221bab5386483d1f63ce73 kdesu-5.59.0.tar.xz"