mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
71 lines
1.8 KiB
Bash
71 lines
1.8 KiB
Bash
# $Id$
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
pkgbase=akonadi-qt4
|
|
pkgname=(libakonadi-qt4 akonadi-qt4 akonadi-qt4-dbus)
|
|
pkgver=1.13.0
|
|
pkgrel=7
|
|
pkgdesc="PIM layer, which provides an asynchronous API to access all kind of PIM data (Qt4 version)"
|
|
arch=('x86_64')
|
|
url='http://community.kde.org/KDE_PIM/Akonadi'
|
|
license=('LGPL')
|
|
makedepends=('cmake' 'automoc4' 'boost' 'postgresql' 'mariadb' 'libxslt' 'qt4')
|
|
install="${pkgname}.install"
|
|
source=("http://download.kde.org/stable/akonadi/src/akonadi-${pkgver}.tar.bz2"
|
|
dont-leak-old-external-payload-files.patch)
|
|
md5sums=('84eb2e471bd6bdfe54a2a2f1d858c07d'
|
|
'9711e300dde3775a38637daa3c20befe')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
cd akonadi-$pkgver
|
|
# https://bugs.kde.org/show_bug.cgi?id=341884
|
|
patch -p1 -i ../dont-leak-old-external-payload-files.patch
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../akonadi-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE \
|
|
-DDATABASE_BACKEND=SQLITE \
|
|
-DWITH_SOPRANO=OFF
|
|
make
|
|
}
|
|
|
|
package_libakonadi-qt4() {
|
|
pkgdesc='Qt4 akonadi libraries'
|
|
depends=('qt4')
|
|
conflicts=('akonadi<15')
|
|
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# conflicts with akonadi
|
|
rm -r "$pkgdir"/usr/{bin,share}
|
|
}
|
|
|
|
package_akonadi-qt4() {
|
|
depends=(libakonadi-qt4 boost-libs mariadb)
|
|
conflicts=(akonadi)
|
|
replaces=('akonadi<15')
|
|
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# provided by libakonadi-qt4
|
|
rm -r "$pkgdir"/usr/{lib,include}
|
|
}
|
|
|
|
package_akonadi-qt4-dbus() {
|
|
depends=()
|
|
conflicts=('akonadi<15')
|
|
|
|
mkdir -p "$pkgdir"/usr/share/dbus-1/interfaces
|
|
install -m644 "$srcdir"/akonadi-$pkgver/interfaces/*.xml "$pkgdir"/usr/share/dbus-1/interfaces/
|
|
}
|