# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Filipe Laíns (FFY00) <filipe.lains@gmail.com>
# Contributor: Riley Trautman <asonix@tamu.edu>

pkgname=pantheon-mail
pkgver=6.1.1
pkgrel=1
pkgdesc='Mail app designed for elementary OS'
arch=(x86_64)
url=https://github.com/elementary/mail
license=(GPL3)
groups=(pantheon)
depends=(
  glib2
  gtk3
  libcamel-1.2.so
  libedataserver-1.2.so
  libedataserverui-1.2.so
  libfolks.so
  libgranite.so
  libhandy-1.so
  webkit2gtk
)
makedepends=(
  git
  intltool
  meson
  vala
)
_tag=0f6758f202b7cb072a34da400273f53f5d494b42
source=(pantheon-mail::git+https://github.com/elementary/mail.git#tag=${_tag})
sha256sums=('SKIP')

pkgver() {
  cd pantheon-mail
  git describe --tags
}

build() {
  arch-meson pantheon-mail build
  meson compile -C build
}

package() {
  DESTDIR="${pkgdir}" meson install -C build
}

# vim: ts=2 sw=2 et:
