PKGBUILD 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Maintainer (arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
  2. # Contributor (arch): Jan de Groot <jgc@archlinux.org>
  3. # Contributor: Andreas Grapentin <andreas@grapentin.org>
  4. # Contributor: Márcio Silva <coadde@hyperbola.info>
  5. # Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  6. # Contributor: Freemor <freemor@freemor.ca>
  7. # Contributor: bill-auger <bill-auger@programmer.net>
  8. # parabola changes and rationale:
  9. # - removed libgdata support
  10. # - pinned to 'icu' sodep
  11. pkgname=evolution-data-server
  12. pkgver=3.38.2
  13. pkgrel=2
  14. pkgrel+=.nonprism1
  15. pkgdesc="Centralized access to appointments and contacts"
  16. pkgdesc+=", without libgdata support"
  17. url="https://wiki.gnome.org/Apps/Evolution"
  18. arch=(x86_64)
  19. arch+=(armv7h i686)
  20. depends=(gnome-online-accounts nss krb5 libgweather libical db libgdata libphonenumber)
  21. depends=(${depends[@]/libgdata/})
  22. makedepends=(intltool gperf gobject-introspection vala gtk-doc boost git cmake ninja)
  23. provides=(libcamel-1.2.so libebackend-1.2.so libebook-1.2.so libebook-contacts-1.2.so
  24. libecal-2.0.so libedata-book-1.2.so libedata-cal-2.0.so libedataserver-1.2.so
  25. libedataserverui-1.2.so)
  26. license=(GPL)
  27. _commit=e5135dcf71a7f4ac0e60acb7ba2b3ac551e9578e # tags/3.38.2^0
  28. source=("git+https://gitlab.gnome.org/GNOME/evolution-data-server.git#commit=$_commit")
  29. sha256sums=('SKIP')
  30. pkgver() {
  31. cd $pkgname
  32. git describe --tags | sed 's/^EVOLUTION_DATA_SERVER_//;s/_/./g;s/-/+/g'
  33. }
  34. prepare() {
  35. cd $pkgname
  36. }
  37. build() {
  38. CFLAGS+=" $CPPFLAGS"
  39. CXXFLAGS+=" $CPPFLAGS"
  40. cmake -S $pkgname -B build -G Ninja \
  41. -DCMAKE_INSTALL_PREFIX=/usr \
  42. -DLIBEXEC_INSTALL_DIR=/usr/lib \
  43. -DSYSCONF_INSTALL_DIR=/etc \
  44. -DENABLE_INTROSPECTION=ON \
  45. -DENABLE_VALA_BINDINGS=ON \
  46. -DENABLE_UOA=OFF \
  47. -DENABLE_GOOGLE=OFF \
  48. -DHAVE_LIBGDATA=OFF \
  49. -DENABLE_GOOGLE_AUTH=OFF \
  50. -DENABLE_GTK_DOC=ON \
  51. -DWITH_PHONENUMBER=ON
  52. cmake --build build
  53. }
  54. check() {
  55. # libedata-book tests fail because they try to
  56. # mkdir /usr/lib/evolution-data-server/camel-providers
  57. cmake --build build --target test || :
  58. }
  59. package() {
  60. depends+=(libicui18n.so libicuuc.so)
  61. DESTDIR="$pkgdir" cmake --install build
  62. }