summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0010b79693a43edc84376e92ffa8270150f0db95 (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
# Maintainer: Alexander Görtz <aur@nyloc.de>
# Contributer: Dylan Cali <calid1984@gmail.com>

pkgname='google-authenticator-libpam-git'

pkgver=r120.c1b3879
pkgver() {
  cd "$srcdir/$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

pkgrel=1
pkgdesc='PAM module for google authenticator app'
arch=('i686' 'x86_64' 'armv7h')
url='https://github.com/google/google-authenticator-libpam'
license=('APACHE')
depends=('pam')
makedepends=('git')
optdepends=('qrencode: scannable QR codes for google auth phone app')
provides=('google-authenticator-libpam')
conflicts=('google-authenticator-libpam')
source=("$pkgname"::'git+https://github.com/google/google-authenticator-libpam.git')
md5sums=(SKIP)

build() {
  cd "${srcdir}/${pkgname}"
  ./bootstrap.sh
  ./configure --prefix=/usr
  make
}


package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}/" install
}