diff options
Diffstat (limited to 'community/kdesu/APKBUILD')
-rw-r--r-- | community/kdesu/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/kdesu/APKBUILD b/community/kdesu/APKBUILD new file mode 100644 index 0000000000..276903d90c --- /dev/null +++ b/community/kdesu/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=kdesu +pkgver=5.60.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="14fa09401a0dc36d9d93a7363557c4902e9ac410a641f0fc8c8da388dfa2051320e97c4f7e289554f3855a574e589b16afc3b381efffda1463cfa4c1f643db50 kdesu-5.60.0.tar.xz" |