blob: 4e0042e6006cb49234feff6036530cab60da4ec3 (
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
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
_gitname=pam_p11
pkgname=pam_p11-git
pkgver=pam_p11.0.6.0.r0.ga6d8605
pkgrel=4
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-2.1-or-later')
depends=('glibc' 'pam' 'libp11' 'openssl')
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 --datarootdir=/usr/share --disable-static
make
}
package() {
cd "$srcdir/$_gitname"
make PREFIX=/usr DESTDIR="$pkgdir" install
}
|