aports/community/kdesu/APKBUILD
2025-04-24 20:33:45 +02:00

54 lines
1.4 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kdesu
pkgver=6.13.0
pkgrel=0
pkgdesc="Integration with su for elevated privileges"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only"
depends_dev="
kcoreaddons-dev
ki18n-dev
kpty-dev
kservice-dev
"
makedepends="$depends_dev
doxygen
extra-cmake-modules
qt6-qttools-dev
samurai
"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/kdesu.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kdesu-$pkgver.tar.xz"
# Since the goal of this library is to elevate privileges, suid being needed should be obvious
options="suid"
[ "$CARCH" = "ppc64le" ] && options="$options !check" # kdesutest is broken
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_QCH=ON
cmake --build build
}
check() {
xvfb-run ctest --test-dir build -E "kdesutest"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
5056cbc0c27dfa12d0f5908fdba911bb526a13699542b68274116ea9a13093883b7e9b57dba398c111cb8c780c104b68db0c177b6237f1eef014c04c1f55e759 kdesu-6.13.0.tar.xz
"