Add KF6 frameworks, kauth6 (#10500)

This commit is contained in:
Schrijvers Luc
2024-05-28 18:15:31 +02:00
committed by GitHub
parent b5a24cb397
commit 3929a97994

View File

@@ -0,0 +1,84 @@
SUMMARY="Execute actions as privileged user"
DESCRIPTION="KAuth provides a convenient, system-integrated way to offload \
actions that need to be performed as a privileged user (root, for example) \
to small (hopefully secure) helper utilities."
HOMEPAGE="https://invent.kde.org/frameworks/kauth"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kauth-${portVersion}.tar.xz"
CHECKSUM_SHA256="3511d9d857c0f6962b005b381ec5e2fef9ded59244da14e31dd0673e05a69b0a"
SOURCE_DIR="kauth-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kauth6$secondaryArchSuffix = $portVersion
lib:libKF6AuthCore$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libKF6CoreAddons$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Xml$secondaryArchSuffix
"
PROVIDES_devel="
kauth6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6AuthCore$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kauth6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libKF6CoreAddons$secondaryArchSuffix == $portVersion
devel:libQt6Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:dot
cmd:doxygen >= 1.9
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DBUILD_QCH=ON \
-DBUILD_TESTING=OFF
make -Cbuild $jobArgs
}
INSTALL()
{
make -Cbuild install
prepareInstalledDevelLib \
libKF6AuthCore
packageEntries devel \
$developDir \
$dataDir/doc \
$libDir/cmake
}
TEST()
{
# 2 tests run, second one doesn't seem to do anything (no mention in the log)
# killed it in the end
make -Cbuild test
}