0
0
Fork 0
haikuports/kde-frameworks/kauth/kauth-5.86.0.recipe

81 lines
1.9 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://github.com/KDE/kauth/"
COPYRIGHT="2010-2021 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kauth/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="d5cbb46a915d72cb9a74a3b71e8f883d56b3d302bef84f3693eef401c90d17f2"
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 >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
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
}