archrelease: copy trunk to extra-x86_64
[arch-packages.git] / evolution / trunk / PKGBUILD
blobd3ff4246fba1f7be120a688049301740421a3c53
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=(
7   evolution
8   evolution-bogofilter
9   evolution-spamassassin
11 pkgver=3.48.1
12 pkgrel=1
13 pkgdesc="Manage your email, contacts and schedule"
14 url="https://wiki.gnome.org/Apps/Evolution"
15 arch=(x86_64)
16 license=(GPL)
17 depends=(
18   cmark
19   enchant
20   evolution-data-server
21   gnome-autoar
22   gnome-desktop
23   gspell
24   libcanberra
25   libgweather-4
26   libpst
27   libytnef
28   webkit2gtk-4.1
30 makedepends=(
31   bogofilter
32   cmake
33   docbook-xsl
34   git
35   gtk-doc
36   highlight
37   intltool
38   itstool
39   networkmanager
40   ninja
41   spamassassin
42   yelp-tools
44 options=(!emptydirs)
45 _commit=1645ae84c7a25892f3e4042101b9abf47ee903b5  # tags/3.48.1^0
46 source=("git+https://gitlab.gnome.org/GNOME/evolution.git#commit=$_commit")
47 b2sums=('SKIP')
49 pkgver() {
50   cd $pkgbase
51   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
54 prepare() {
55   cd $pkgbase
58 build() {
59   local cmake_options=(
60     -DCMAKE_INSTALL_PREFIX=/usr
61     -DLIBEXEC_INSTALL_DIR=/usr/lib
62     -DSYSCONF_INSTALL_DIR=/etc
64     -DENABLE_GTK_DOC=ON
65     -DENABLE_SMIME=ON
66   )
68   cmake -S $pkgbase -B build -G Ninja "${cmake_options[@]}"
69   cmake --build build
72 _pick() {
73   local p="$1" f d; shift
74   for f; do
75     d="$srcdir/$p/${f#$pkgdir/}"
76     mkdir -p "$(dirname "$d")"
77     mv "$f" "$d"
78     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
79   done
82 package_evolution() {
83   depends+=(
84     libcamel-1.2.so
85     libebook-1.2.so
86     libebook-contacts-1.2.so
87     libecal-2.0.so
88     libedataserver-1.2.so
89     libedataserverui-1.2.so
90   )
91   optdepends=(
92     'evolution-bogofilter: Bogofilter spam check plugin'
93     'evolution-spamassassin: Spamassassin spam check plugin'
94     'highlight: text highlight plugin'
95   )
96   groups=(gnome-extra)
98   DESTDIR="$pkgdir" cmake --install build
100   cd "$pkgdir"
101   for x in bogofilter spamassassin; do
102     _pick $x usr/lib/evolution/modules/module-$x.so
103     _pick $x usr/share/metainfo/org.gnome.Evolution-$x.metainfo.xml
104   done
108 package_evolution-bogofilter() {
109   pkgdesc="Spam filtering for Evolution, using Bogofilter"
110   depends=(
111     "evolution=$pkgver"
112     bogofilter
113   )
115   mv bogofilter/* "$pkgdir"
118 package_evolution-spamassassin() {
119   pkgdesc="Spam filtering for Evolution, using SpamAssassin"
120   depends=(
121     "evolution=$pkgver"
122     spamassassin
123   )
125   mv spamassassin/* "$pkgdir"
128 # vim:set sw=2 sts=-1 et: