summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 488c1d9fa8e7546a9a66c5d1218e6912e5494e14 (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: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Oleg Smirnov <oleg.smirnov@gmail.com>

pkgname=pam_pkcs11
pkgver=0.6.6
pkgrel=1
pkgdesc="PAM module allows a X.509 certificate based user login"
arch=('i686' 'x86_64')
url="http://www.opensc-project.org/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/pam_pkcs11/archive/${pkgname}-${pkgver}.tar.gz")
md5sums=('12eeccb422fd6e99cb46fa72466c7174')

build() {
	cd ${pkgname}-${pkgname}-$pkgver
  ./bootstrap
	./configure --prefix=/usr \
    --sysconfdir=/etc \
		--with-ldap=no \
    --without-docbook \
    --disable-static
#    --disable-debug, the build is broken
  make
}

package() {
	cd ${pkgname}-${pkgname}-$pkgver
  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}"/etc/pam_pkcs11/{cacerts,crls}
}