summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bd4c8c354c9840bcb6d7ba679c37eb06a552ab0 (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
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com> 
_gitname=pam_p11
pkgname=pam_p11-git
pkgver=pam_p11.0.6.0.r0.ga6d8605
pkgrel=1
pkgdesc="PAM module for using crpytographic PKCS11 tokens such as smart cards and usb crypto tokens for local authentication."
arch=('i686' 'x86_64')
url="https://github.com/OpenSC/OpenSC/wiki/pam_p11-simple-RSA-authentication-with-PKCS%2311-modules"
license=('LGPL')
depends=('libp11')
makedepends=('git')
provides=('pam_p11')
source=('git+https://github.com/OpenSC/pam_p11.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  # Use the tag of the last commit
  git describe --long --always | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_gitname"
  mkdir -p m4
  ./bootstrap
  ./configure --libdir=/usr/lib --disable-static
  make
}

package() {
  cd "$srcdir/$_gitname"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}