archrelease: copy trunk to extra-x86_64
[arch-packages.git] / evolution-data-server / trunk / PKGBUILD
blobc670be16cb4090df810064a7d5031fcb1e1a4198
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=evolution-data-server
5 pkgname=(
6   evolution-data-server
7   libedataserverui4
8   evolution-data-server-docs
10 pkgver=3.48.1
11 pkgrel=1
12 pkgdesc="Unified contacts, tasks and calendar backend"
13 url="https://wiki.gnome.org/Apps/Evolution"
14 arch=(x86_64)
15 depends=(
16   gtk3
17   krb5
18   libcanberra
19   libgoa
20   libgweather-4
21   libical
22   libphonenumber
23   libsecret
24   nss
25   sqlite
26   webkit2gtk-4.1
28 makedepends=(
29   boost
30   cmake
31   git
32   gobject-introspection
33   gperf
34   gtk-doc
35   ninja
36   vala
37   webkitgtk-6.0
39 checkdepends=(db)
40 license=(GPL)
41 _commit=fc0a280168a5ec8aaeae7f9e34c46f10914c7c84  # tags/3.48.1^0
42 source=("git+https://gitlab.gnome.org/GNOME/evolution-data-server.git#commit=$_commit")
43 b2sums=('SKIP')
45 pkgver() {
46   cd $pkgbase
47   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
50 prepare() {
51   cd $pkgbase
54 build() {
55   local cmake_options=(
56     -DCMAKE_INSTALL_PREFIX=/usr
57     -DLIBEXEC_INSTALL_DIR=/usr/lib
58     -DSYSCONF_INSTALL_DIR=/etc
59     -DENABLE_GTK_DOC=ON
60     -DENABLE_INTROSPECTION=ON
61     -DENABLE_VALA_BINDINGS=ON
62     -DWITH_GWEATHER4=ON
63     -DWITH_LIBDB=OFF
64     -DWITH_PHONENUMBER=ON
65   )
67   cmake -S $pkgbase -B build -G Ninja "${cmake_options[@]}"
68   cmake --build build
71 check() {
72   cd build
73   ctest --output-on-failure --stop-on-failure
76 _pick() {
77   local p="$1" f d; shift
78   for f; do
79     d="$srcdir/$p/${f#$pkgdir/}"
80     mkdir -p "$(dirname "$d")"
81     mv "$f" "$d"
82     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
83   done
86 package_evolution-data-server() {
87   provides=(
88     libcamel-1.2.so
89     libebackend-1.2.so
90     libebook-1.2.so
91     libebook-contacts-1.2.so
92     libecal-2.0.so
93     libedata-book-1.2.so
94     libedata-cal-2.0.so
95     libedataserver-1.2.so
96     libedataserverui-1.2.so
97   )
99   DESTDIR="$pkgdir" cmake --install build
101   cd "$pkgdir"
103   _pick ui4 usr/include/evolution-data-server/libedataserverui4
104   _pick ui4 usr/lib/libedataserverui4-1.0.so*
105   _pick ui4 usr/lib/pkgconfig/libedataserverui4-1.0.pc
106   _pick ui4 usr/lib/girepository-1.0/EDataServerUI4-1.0.typelib
107   _pick ui4 usr/share/gir-1.0/EDataServerUI4-1.0.gir
108   _pick ui4 usr/share/vala/vapi/libedataserverui4-1.0.*
110   _pick docs usr/share/gtk-doc
113 package_libedataserverui4() {
114   pkgdesc+=" - GTK 4 UI library"
115   depends=(
116     "evolution-data-server=$pkgver-$pkgrel"
117     libgtk-4.so
118     libwebkitgtk-6.0.so
119   )
120   provides=(libedataserverui4-1.0.so)
122   mv ui4/* "$pkgdir"
125 package_evolution-data-server-docs() {
126   pkgdesc+=" - documentation"
127   depends=()
129   mv docs/* "$pkgdir"
132 # vim:set sw=2 sts=-1 et: