# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kdesu pkgver=5.64.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="83395f55f5515ade8286f71dd4301f6d3f32e44278a562a3f6f7d266a0198c55b6e6c790fcdd67d86df184d4497fa7a284471f379c4464da5b6ba05ed11c476b kdesu-5.64.0.tar.xz"