summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 387d002f422a8070757e3d768d444ea1a8b7bc74 (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
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=gsignond-plugin-oauth-git
pkgver=r81.794ed1d
pkgrel=1
pkgdesc='OAuth plugin for gSSO'
arch=('x86_64')
url='https://01.org/gsso'
license=('LGPL2.1')
depends=('glib2' 'glibc' 'gnutls' 'gsignond' 'json-glib' 'libsoup' 'sqlite')
makedepends=('git' 'gobject-introspection' 'gtk-doc')
provides=('gsignond-plugin-oauth')
conflicts=('gsignond-plugin-oauth')
source=('gsignond-plugin-oauth::git+https://gitlab.com/accounts-sso/gsignond-plugin-oa.git')
sha256sums=('SKIP')

pkgver() {
  cd gsignond-plugin-oauth

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

prepare() {
  cd gsignond-plugin-oauth

  mkdir -p m4
  gtkdocize
  aclocal
  autoheader
  libtoolize --copy --force
  autoconf
  automake --add-missing --copy
}

build() {
  cd gsignond-plugin-oauth

  export CFLAGS="$CFLAGS -Wno-deprecated-declarations"

  ./configure \
    --prefix='/usr' \
    --enable-gtk-doc
  make
}

package() {
  cd gsignond-plugin-oauth

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: