sbcl rebuild
[arch-packages.git] / evolution / repos / extra-x86_64 / PKGBUILD
blobbc9f62439d255214de82f40018427ce339de8e95
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>
5 pkgbase=evolution
6 pkgname=(evolution evolution-bogofilter evolution-spamassassin)
7 pkgver=3.44.4
8 pkgrel=1
9 pkgdesc="Manage your email, contacts and schedule"
10 url="https://wiki.gnome.org/Apps/Evolution"
11 arch=(x86_64)
12 license=(GPL)
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")
20 sha256sums=('SKIP')
22 pkgver() {
23   cd $pkgbase
24   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
27 prepare() {
28   cd $pkgbase
31 build() {
32   cmake -S $pkgbase -B build -G Ninja \
33     -DCMAKE_INSTALL_PREFIX=/usr \
34     -DLIBEXEC_INSTALL_DIR=/usr/lib \
35     -DSYSCONF_INSTALL_DIR=/etc \
36     -DENABLE_SMIME=ON \
37     -DENABLE_GTK_DOC=ON \
38     -DWITH_GWEATHER4=ON
39   cmake --build build
42 _pick() {
43   local p="$1" f d; shift
44   for f; do
45     d="$srcdir/$p/${f#$pkgdir/}"
46     mkdir -p "$(dirname "$d")"
47     mv "$f" "$d"
48     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
49   done
52 package_evolution() {
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')
58   groups=(gnome-extra)
60   DESTDIR="$pkgdir" cmake --install build
62   cd "$pkgdir"
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
66   done
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"