Files
haikuports/kde-apps/kaccounts_integration/kaccounts_integration_kf6-25.12.0.recipe
2025-12-20 17:17:03 +01:00

119 lines
3.3 KiB
Bash

SUMMARY="Online account management system and its Plasma integration components"
DESCRIPTION="Small system to administer web accounts for the sites and services across the KDE \
desktop."
HOMEPAGE="https://invent.kde.org/network/kaccounts-integration"
COPYRIGHT="2010-2025 KDE Organisation"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kaccounts-integration-$portVersion.tar.xz"
CHECKSUM_SHA256="d6c63e57776e3851b559a6e64bf0de465d2cc751efa07d12b0c2a9041ebf4711"
SOURCE_DIR="kaccounts-integration-$portVersion"
PATCHES="kaccounts_integration-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= 2"
PROVIDES="
kaccounts_integration_kf6$secondaryArchSuffix = $portVersion
lib:libkaccounts6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libaccounts_qt6$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libsignon_qt6$secondaryArchSuffix
# KF6
lib:libKF6CoreAddons$secondaryArchSuffix
lib:libKF6I18n$secondaryArchSuffix
# Qt6
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Xml$secondaryArchSuffix
"
REPLACES="
kaccounts_integration_kf6$secondaryArchSuffix
"
PROVIDES_devel="
kaccounts_integration_kf6${secondaryArchSuffix}_devel = $portVersion
devel:libkaccounts6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kaccounts_integration_kf6$secondaryArchSuffix == $portVersion base
devel:libaccounts_qt6$secondaryArchSuffix
devel:libsignon_qt6$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libaccounts_qt6$secondaryArchSuffix
devel:libKirigami$secondaryArchSuffix
devel:libQCoro6Core$secondaryArchSuffix
devel:libsignon_qt6$secondaryArchSuffix
# KF6
extra_cmake_modules$secondaryArchSuffix
devel:libKF6Bookmarks$secondaryArchSuffix
devel:libKF6ColorScheme$secondaryArchSuffix
devel:libKF6Completion$secondaryArchSuffix
devel:libKF6ConfigCore$secondaryArchSuffix
devel:libKF6ConfigWidgets$secondaryArchSuffix
devel:libKF6CoreAddons$secondaryArchSuffix
devel:libKF6DbusAddons$secondaryArchSuffix
devel:libKF6I18n$secondaryArchSuffix
devel:libKF6ItemViews$secondaryArchSuffix
devel:libKF6JobWidgets$secondaryArchSuffix
devel:libKF6KCMUtils$secondaryArchSuffix
devel:libKF6KIOCore$secondaryArchSuffix
devel:libKF6Service$secondaryArchSuffix
devel:libKF6Solid$secondaryArchSuffix
devel:libKF6Wallet$secondaryArchSuffix
devel:libKF6WindowSystem$secondaryArchSuffix
# Qt6
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Gui$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
devel:libQt6Xml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:ninja
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DCMAKE_SKIP_RPATH=YES \
-DBUILD_TESTING=OFF \
-Wno-dev
ninja -v -C build $jobArgs
}
INSTALL()
{
ninja -C build install
# cleanup
rm -rf $dataDir/applications
prepareInstalledDevelLib \
libkaccounts6
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
ctest --test-dir build --output-on-failure
}