# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=akonadi pkgver=${_kdever} pkgrel=1 arch=('x86_64') url='https://community.kde.org/KDE_PIM/Akonadi' pkgdesc="PIM layer, which provides an asynchronous API to access all kind of PIM data" license=('LGPL') depends=('shared-mime-info' 'mariadb' 'qt5-base' 'libxslt' 'kitemviews' 'kio' 'kconfig' 'ki18n' 'kdesignerplugin' 'kdbusaddons' 'kitemmodels' 'kguiaddons' 'kiconthemes' 'kwindowsystem' 'kcompletion' 'kaccounts-integration') makedepends=('extra-cmake-modules' 'postgresql' 'boost' 'qt5-tools') groups=('kdepim') optdepends=('postgresql: PostgreSQL backend') source=("$_mirror/${pkgname}-${_kdever}.tar.xz" "https://github.com/KDE/akonadi/commit/2dc7fbf569ba3f7eeef98fb818d7af0820caf7a3.diff") md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1` '65deb2ccabfb088e8e94daffb9b511a3') prepare() { cd ${pkgname}-${pkgver} # https://bugs.kde.org/show_bug.cgi?id=380182 #patch -p1 -i ${srcdir}/2dc7fbf569ba3f7eeef98fb818d7af0820caf7a3.diff } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }