summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01d768d90c1dcc23ad67e5affe63500babe6cfe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Silvio Fricke <silvio.fricke@gmail.com>
# Contributor: <tmoore01 (at) gmail (dot) com>

_pkgname=evolution
pkgname=$_pkgname-git
pkgver=3.31.1.r012.g091b47bce6
pkgrel=1
pkgdesc="Manage your email, contacts and schedule - git version"
arch=(i686 x86_64)
license=(GPL)
depends=(dconf
         desktop-file-utils
         evolution-data-server
         gnome-autoar
         gnome-common
         gnome-desktop
         gtk-doc
         gtkspell3
         hicolor-icon-theme
         libcanberra
         libchamplain
         libcryptui
         libpst
         libytnef
         )
makedepends=(dconf
             desktop-file-utils
             docbook-xsl
             evolution-data-server
             gnome-desktop
             gtkspell3
             hicolor-icon-theme
             highlight
             intltool
             itstool
             libcanberra
             libcryptui
             libpst
             libytnef
             networkmanager
             )
optdepends=('highlight: text highlight plugin'
            'evolution-spamassassin: Spamassassin spam check plugin'
            'evolution-bogofilter: Bogofilter spam check plugin')
options=('!emptydirs')
url="https://wiki.gnome.org/Apps/Evolution"
conflicts=('evolution' 'evolution-bogofilter' 'evolution-spamassassin')
replaces=('evolution' 'evolution-bogofilter' 'evolution-spamassassin')
provides=('evolution' 'evolution-bogofilter' 'evolution-spamassassin')
install=$_pkgname.install
source=(evolution::git+https://gitlab.gnome.org/GNOME/evolution.git)
sha256sums=('SKIP')

pkgver() {
        cd $srcdir/$_pkgname
        git describe --long | awk -F '-' '/-/{ printf "%s.r%3.3d.%s\n", $1, $2, $3 }'
}

build() {
        cd $srcdir/$_pkgname

        [ ! -d build ] && mkdir build
        cd build

        cmake .. -G Ninja \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DLIBEXEC_INSTALL_DIR=/usr/lib \
                -DSYSCONF_INSTALL_DIR=/etc \
                -DENABLE_CONTACT_MAPS=ON \
                -DENABLE_GTK_DOC=ON \
                -DENABLE_PLUGINS=all \
                -DENABLE_SMIME=ON \

        ninja
}

package() {
        cd $srcdir/$_pkgname/build
        DESTDIR="$pkgdir" ninja install
}