sbcl 2.3.0 rebuild
[arch-packages.git] / evolution / repos / extra-x86_64 / PKGBUILD
blob7bafa17dbd463590c8f636ff0fb35e1936d922be
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.46.2
8 pkgrel=2
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          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")
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   cmake --build build
41 _pick() {
42   local p="$1" f d; shift
43   for f; do
44     d="$srcdir/$p/${f#$pkgdir/}"
45     mkdir -p "$(dirname "$d")"
46     mv "$f" "$d"
47     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
48   done
51 package_evolution() {
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')
57   groups=(gnome-extra)
59   DESTDIR="$pkgdir" cmake --install build
61   cd "$pkgdir"
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
65   done
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: