Files
haikuports/kde-frameworks/kauth/kauth-5.115.0.recipe
Gerasim Troeglazov 45af0a0e06 kauth: bump version
2024-02-29 22:11:31 +10:00

87 lines
2.0 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="53a9f56befc66a467ea1764af55dfaac0d79a5d5b55d2abe6e399236f9f35aa2"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kauth$secondaryArchSuffix = $portVersion
lib:libKF5Auth$secondaryArchSuffix = $portVersion compat >= 5
lib:libkf5authcore$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
kauth${secondaryArchSuffix}_devel = $portVersion
devel:libKF5Auth$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kauth$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
PATCH()
{
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
}
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5Auth
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}