Files
haikuports/kde-apps/kaccounts_integration/kaccounts_integration24-24.08.2.recipe

117 lines
3.4 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-2024 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="56ce3434d20bcc89673822f7b949f50f32fc7538ee7242fb97628554c92c8f16"
SOURCE_DIR="kaccounts-integration-$portVersion"
PATCHES="kaccounts_integration-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kaccounts_integration24$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
"
PROVIDES_devel="
kaccounts_integration24${secondaryArchSuffix}_devel = $portVersion
devel:libkaccounts6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kaccounts_integration24$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:make
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage kaccounts_integration24$secondaryArchSuffix \
$libDir/libkaccounts6.so.$libVersion
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs \
-DCMAKE_SKIP_RPATH=YES \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DBUILD_TESTING=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libkaccounts6
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
make check
}