# Maintainer: nl6720 # Contributor: Jack Random # Contributor: Jerome Leclanche # Contributor: Felix Yan # Contributor: Antonio Rojas # Contributor: Pierre Schmitz pkgbase=akonadi-git pkgname=(akonadi-git libakonadi-git) pkgver=24.01.75.r7.gca58c45 pkgrel=1 pkgdesc='PIM layer, which provides an asynchronous API to access all kind of PIM data' arch=(x86_64) url='https://invent.kde.org/pim/akonadi' license=(LGPL) depends=(kconfig kconfigwidgets kiconthemes kio kxmlgui) makedepends=(git extra-cmake-modules mariadb postgresql qt6-tools boost kitemmodels kaccounts-integration) source=("git+https://invent.kde.org/pim/akonadi.git") sha512sums=('SKIP') pkgver() { cd "${pkgname%-git}" git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { mkdir -p build } build() { cmake -B build -S "${pkgname%-git}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF cmake --build build } package_libakonadi-git() { pkgdesc='Libraries used by applications based on Akonadi' depends+=(kitemmodels kaccounts-integration) conflicts=("${pkgname%-git}") provides=("${pkgname%-git}=${pkgver}") DESTDIR="$pkgdir" cmake --install build rm -r "$pkgdir"/usr/bin # Provided by akonadi } package_akonadi-git() { depends=(libakonadi-git) optdepends=('mariadb: MariaDB backend' 'postgresql: PostgreSQL backend' 'postgresql-old-upgrade: upgrade from previous major PostgreSQL version using pg_upgrade' 'sqlite: SQLite backend') conflicts=("${pkgname%-git}") provides=("${pkgname%-git}=${pkgver}") DESTDIR="$pkgdir" cmake --install build rm -r "$pkgdir"/{etc,usr/{include,lib,share}} # Provided by libakonadi }