summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed761a37e27977b584cb0ae554b09620282cb4cc (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
# Maintainer: Que Quotion <quequotion@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>

pkgname=gsignond-plugin-mail-git
pkgver=r10.3a9503d
pkgrel=1
pkgdesc='Mail plugin for gSSO'
arch=('x86_64')
url='https://01.org/gsso'
license=('LGPL2.1')
depends=('glib2' 'glibc'
         'libgsignond-common.so')
makedepends=('git' 'gobject-introspection' 'gsignond' 'gtk-doc' 'meson' 'vala')
provides=('gsignond-plugin-mail')
conflicts=('gsignond-plugin-mail')
source=('gsignond-plugin-mail::git+https://gitlab.com/accounts-sso/gsignond-plugin-mail.git')
sha256sums=('SKIP')

pkgver() {
  cd gsignond-plugin-mail

  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd build

  arch-meson ../gsignond-plugin-mail
  ninja
}

package() {
  cd build

  DESTDIR="${pkgdir}" ninja install
}