Files
haikuports/kde-apps/libkgapi/libkgapi-23.08.5.recipe
Gerasim Troeglazov 3360e8ec98 libkgapi: bump version
2024-03-02 21:40:44 +10:00

143 lines
4.8 KiB
Bash

SUMMARY="A KDE-based library for accessing various Google services via their public API"
DESCRIPTION="LibKGAPI (previously called LibKGoogle) is a C++ library that implements APIs for \
various Google services.
Currently supported APIs:
* Calendar API v3 (https://developers.google.com/google-apps/calendar)
* Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/)
* Tasks API v1 (https://developers.google.com/google-apps/tasks)
* Static Google Maps API v2 (https://developers.google.com/maps/documentation/staticmaps/)
* Drive API v2 (https://developers.google.com/drive/v2/reference)
* Blogger API v3 (https://developers.google.com/blogger/docs/3.0/reference/)
Deprecated APIs:
* Latitude API v1 (https://developers.google.com/latitude/v1/)."
HOMEPAGE="https://community.kde.org/KDE_PIM"
COPYRIGHT="2010-2024 KDE Organisation"
LICENSE="BSD (3-clause)
CC0 v1.0
GNU LGPL v2.1
GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/libkgapi-$portVersion.tar.xz"
CHECKSUM_SHA256="10249f32a3a8a26a73e251d0415d42b69827ad354b451f62bdbb01bc6a40d7a3"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="5.24.5"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libkgapi$secondaryArchSuffix = $portVersion
lib:libKPim5GAPIBlogger$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPICalendar$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPICore$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPIDrive$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPILatitude$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPIMaps$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPIPeople$secondaryArchSuffix = $libVersionCompat
lib:libKPim5GAPITasks$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5CalendarCore$secondaryArchSuffix
lib:libKF5Codecs$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5Contacts$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5Wallet$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
lib:libsasl2$secondaryArchSuffix
"
PROVIDES_devel="
libkgapi${secondaryArchSuffix}_devel = $portVersion
devel:libKPim5GAPIBlogger$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPICalendar$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPICore$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPIDrive$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPILatitude$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPIMaps$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPIPeople$secondaryArchSuffix = $libVersionCompat
devel:libKPim5GAPITasks$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libkgapi$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= 5.115
devel:libKF5Auth$secondaryArchSuffix
devel:libKF5CalendarCore$secondaryArchSuffix
devel:libKF5Codecs$secondaryArchSuffix
devel:libKF5ConfigCore$secondaryArchSuffix
devel:libKF5ConfigWidgets$secondaryArchSuffix
devel:libKF5Contacts$secondaryArchSuffix
devel:libKF5CoreAddons$secondaryArchSuffix
devel:libKF5I18n$secondaryArchSuffix
devel:libKF5IconThemes$secondaryArchSuffix
devel:libKF5SonnetCore$secondaryArchSuffix
devel:libKF5TextWidgets$secondaryArchSuffix
devel:libKF5Wallet$secondaryArchSuffix
devel:libKF5WidgetsAddons$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5DBus$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libQt5Xml$secondaryArchSuffix
devel:libsasl2$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()
{
export LDFLAGS="-lnetwork"
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
prepareInstalledDevelLibs \
libKPim5GAPIBlogger \
libKPim5GAPICalendar \
libKPim5GAPICore \
libKPim5GAPIDrive \
libKPim5GAPILatitude \
libKPim5GAPIMaps \
libKPim5GAPIPeople \
libKPim5GAPITasks
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}