blob: cfb0c515ac6f181f236d58e3a5aa19a8a8ccf063 (
plain)
1 # Description: Provides a way to load and enumerate PKCS#11 modules
2 # URL: https://p11-glue.github.io/p11-glue/p11-kit.html
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libtasn1 libffi make-ca
5
6 name=p11-kit
7 version=0.23.15
8 release=1
9 source=(https://github.com/p11-glue/$name/releases/download/$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 sed '20,$ d' -i trust/trust-extract-compat.in
15 cat >> trust/trust-extract-compat.in << "EOF"
16 # Copy existing anchor modifications to /etc/ssl/local
17 /usr/lib/make-ca/copy-trust-modifications
18
19 # Generate a new trust store
20 /usr/sbin/make-ca -f -g
21 EOF
22
23 ./configure \
24 --prefix=/usr \
25 --libexecdir=/usr/lib \
26 --sysconfdir=/etc \
27 --localstatedir=/var \
28 --with-module-path=/usr/lib/pkcs11 \
29 --with-trust-paths=/etc/pki/anchors
30
31 make
32 make DESTDIR=$PKG install
33
34 ln -s ../lib/p11-kit/trust-extract-compat \
35 $PKG/usr/bin/update-ca-trust
36
37 rm -r $PKG/usr/share/gtk-doc
38 }
|