1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Fabian Bornschein <fabiscafe-cat-mailbox-dog-org>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
6 pkgname=(evolution evolution-bogofilter evolution-spamassassin)
9 pkgdesc="Manage your email, contacts and schedule"
10 url="https://wiki.gnome.org/Apps/Evolution"
13 depends=(gnome-desktop evolution-data-server libcanberra libpst libytnef gspell
14 libcryptui gnome-autoar libgweather-4 enchant cmark)
15 makedepends=(intltool itstool docbook-xsl networkmanager bogofilter
16 spamassassin highlight gtk-doc yelp-tools git cmake ninja)
17 options=(!emptydirs debug)
18 _commit=9166ad318512d9820ac6e8c5da6232ff18289f88 # tags/3.44.4^0
19 source=("git+https://gitlab.gnome.org/GNOME/evolution.git#commit=$_commit")
24 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
32 cmake -S $pkgbase -B build -G Ninja \
33 -DCMAKE_INSTALL_PREFIX=/usr \
34 -DLIBEXEC_INSTALL_DIR=/usr/lib \
35 -DSYSCONF_INSTALL_DIR=/etc \
43 local p="$1" f d; shift
45 d="$srcdir/$p/${f#$pkgdir/}"
46 mkdir -p "$(dirname "$d")"
48 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
53 depends+=(libcamel-1.2.so libebook-1.2.so libebook-contacts-1.2.so
54 libecal-2.0.so libedataserver-1.2.so libedataserverui-1.2.so)
55 optdepends=('highlight: text highlight plugin'
56 'evolution-spamassassin: Spamassassin spam check plugin'
57 'evolution-bogofilter: Bogofilter spam check plugin')
60 DESTDIR="$pkgdir" cmake --install build
63 for x in bogofilter spamassassin; do
64 _pick $x usr/lib/evolution/modules/module-$x.so
65 _pick $x usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
70 package_evolution-bogofilter() {
71 pkgdesc="Spam filtering for Evolution, using Bogofilter"
72 depends=("evolution=$pkgver" bogofilter)
73 mv bogofilter/* "$pkgdir"
76 package_evolution-spamassassin() {
77 pkgdesc="Spam filtering for Evolution, using SpamAssassin"
78 depends=("evolution=$pkgver" spamassassin)
79 mv spamassassin/* "$pkgdir"