aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kdesu
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-05-31 15:46:26 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2019-06-01 17:41:57 +0000
commitd678bdd67ed4b18bbcfd90562cabf33474a89f7c (patch)
tree02db43b0e988bfeaf5ebccd1bef2ec49971c9f4f /testing/kdesu
parentc2bce5733160101b56f242f85cd57e2cae00ab7a (diff)
downloadaports-d678bdd67ed4b18bbcfd90562cabf33474a89f7c.tar.bz2
aports-d678bdd67ed4b18bbcfd90562cabf33474a89f7c.tar.xz
testing/kdesu: new aport
Closes GH-8328
Diffstat (limited to 'testing/kdesu')
-rw-r--r--testing/kdesu/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/kdesu/APKBUILD b/testing/kdesu/APKBUILD
new file mode 100644
index 0000000000..504110dc11
--- /dev/null
+++ b/testing/kdesu/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=kdesu
+pkgver=5.58.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"
+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 !check" # Tests require X11
+
+build() {
+ cmake \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" make install
+}
+sha512sums="e2318670aa7465ac4268239f882b57af35f6943696498a4da33c51e4a89c3be646d617fe50e3aa132a200373f567b26a2247aba5638ad28b1ad0429c21eaed88 kdesu-5.58.0.tar.xz"