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 gnome-autoar libgweather-4 enchant cmark webkit2gtk-4.1)
15 makedepends=(intltool itstool docbook-xsl networkmanager bogofilter
16 spamassassin highlight gtk-doc yelp-tools git cmake ninja)
17 options=(!emptydirs debug)
18 _commit=cec0be4f83b971bdcd00b1d52867f23597fe49fa # tags/3.46.2^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 \
42 local p="$1" f d; shift
44 d="$srcdir/$p/${f#$pkgdir/}"
45 mkdir -p "$(dirname "$d")"
47 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
52 depends+=(libcamel-1.2.so libebook-1.2.so libebook-contacts-1.2.so
53 libecal-2.0.so libedataserver-1.2.so libedataserverui-1.2.so)
54 optdepends=('highlight: text highlight plugin'
55 'evolution-spamassassin: Spamassassin spam check plugin'
56 'evolution-bogofilter: Bogofilter spam check plugin')
59 DESTDIR="$pkgdir" cmake --install build
62 for x in bogofilter spamassassin; do
63 _pick $x usr/lib/evolution/modules/module-$x.so
64 _pick $x usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
69 package_evolution-bogofilter() {
70 pkgdesc="Spam filtering for Evolution, using Bogofilter"
71 depends=("evolution=$pkgver" bogofilter)
72 mv bogofilter/* "$pkgdir"
75 package_evolution-spamassassin() {
76 pkgdesc="Spam filtering for Evolution, using SpamAssassin"
77 depends=("evolution=$pkgver" spamassassin)
78 mv spamassassin/* "$pkgdir"
81 # vim:set sw=2 sts=-1 et: