mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
106 lines
2.6 KiB
Bash
106 lines
2.6 KiB
Bash
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="479660eabe97198c31f228a18271bc739b234943c68e95383c361a835131179b"
|
|
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
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
kauth6${secondaryArchSuffix}_doc = $portVersion
|
|
"
|
|
REQUIRES_doc="
|
|
kauth6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libKF6CoreAddons$secondaryArchSuffix == $libVersion
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:dot
|
|
cmd:doxygen
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
lib:libdbus_1$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
|
-DKDE_INSTALL_QTPLUGINDIR=$addOnsDir/Qt6 \
|
|
-DKDE_INSTALL_QTQCHDIR=$documentationDir/packages/qt6_base \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DBUILD_QCH=ON \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libKF6AuthCore
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 2 tests run, second one doesn't seem to do anything (no mention in the log)
|
|
# killed it in the end
|
|
ctest --test-dir build --output-on-failure
|
|
}
|