# Contributor: Andrea Scarpino # Contributor: Oleg Smirnov pkgname=pam_pkcs11 pkgver=0.6.12 pkgrel=1 pkgdesc='PAM module allows a X.509 certificate based user login' arch=('i686' 'x86_64') url='https://opensc.github.io/pam_pkcs11/' license=('LGPL') depends=('pcsclite') backup=('etc/pam_pkcs11/pam_pkcs11.conf' 'etc/pam_pkcs11/subject_mapping' 'etc/pam_pkcs11/card_eventmgr.conf') source=("https://github.com/OpenSC/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz") md5sums=('40263f66e24fc21fb1964184728680a3') build() { cd ${pkgname}-${pkgname}-${pkgver} ./bootstrap ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-ldap=no \ --without-docbook \ --disable-static # --disable-debug # build is broken make } package() { cd ${pkgname}-${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -d "${pkgdir}"/etc/pam_pkcs11/{cacerts,crls} }