mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
83 lines
1.9 KiB
Bash
83 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-2018 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/KDE/kauth/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c3c3720c27b59d9278a912ad2397c34854b747de0aac2da446d909b2520e2bc2"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kauth$secondaryArchSuffix = $portVersion
|
|
lib:libKF5Auth$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="
|
|
extra_cmake_modules >= 5.46
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
|
|
devel:libQt5Core$secondaryArchSuffix >= 5.7
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/dbus-1/system.d/org.kde.kf5auth.conf keep-old
|
|
settings/xdg/kauth.categories keep-old
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. $cmakeDirArgs \
|
|
-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
|
|
}
|