# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=5.65.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%.*}/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=RelWithDebInfo \ -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="46d310407262ec76550273b18f8647443b9952e527d4b8e3d5b869ee894807e2f6eed6597c28d42b3e6b96d2f270f4bf7dd64dfea6c5b4ecfa863e901d697d40 kdesu-5.65.0.tar.xz"