mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
86 lines
2.3 KiB
Bash
86 lines
2.3 KiB
Bash
SUMMARY="Libraries and daemons to implement management of notes"
|
|
DESCRIPTION="Akonadi Notes is a library that effectively bridges the type-agnostic API of the \
|
|
Akonadi client libraries and the domain-specific KMime library. It provides a helper class for \
|
|
note attachments and for wrapping notes into KMime::Message objects."
|
|
HOMEPAGE="https://community.kde.org/KDE_PIM"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="BSD (3-clause)
|
|
CC0 v1.0
|
|
GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/akonadi-notes-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="fe3a8eccc987d9a84bd01235ac02b78ed432e43b9323757b0042dfb8aae5838e"
|
|
SOURCE_DIR="akonadi-notes-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.24.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
akonadi_notes$secondaryArchSuffix = $portVersion
|
|
lib:libKPim5AkonadiNotes$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKPim5Mime$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
akonadi_notes${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKPim5AkonadiNotes$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
akonadi_notes$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.115
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKPim5Mime$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
|
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libKPim5AkonadiNotes
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir/Qt5/mkspecs \
|
|
$developDir
|
|
}
|