opt/p11-kit/Pkgfile

39 lines
954 B
Plaintext
Raw Normal View History

2018-04-02 12:01:59 +02:00
# Description: Provides a way to load and enumerate PKCS#11 modules
2019-02-20 15:03:43 +01:00
# URL: https://p11-glue.github.io/p11-glue/p11-kit.html
2018-04-02 12:01:59 +02:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-02-20 15:03:43 +01:00
# Depends on: libtasn1 libffi make-ca
2018-04-02 12:01:59 +02:00
name=p11-kit
2020-09-29 14:27:36 +02:00
version=0.23.21
2018-04-02 12:01:59 +02:00
release=1
2020-02-01 11:52:29 +01:00
source=(https://github.com/p11-glue/$name/releases/download/$version/$name-$version.tar.xz)
2018-04-02 12:01:59 +02:00
build() {
cd $name-$version
2019-02-20 15:03:43 +01:00
sed '20,$ d' -i trust/trust-extract-compat.in
cat >> trust/trust-extract-compat.in << "EOF"
# Copy existing anchor modifications to /etc/ssl/local
/usr/lib/make-ca/copy-trust-modifications
# Generate a new trust store
/usr/sbin/make-ca -f -g
EOF
2018-04-02 12:01:59 +02:00
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
2018-04-02 12:02:12 +02:00
--sysconfdir=/etc \
--localstatedir=/var \
--with-module-path=/usr/lib/pkcs11 \
2019-02-20 15:03:43 +01:00
--with-trust-paths=/etc/pki/anchors
2018-04-02 12:01:59 +02:00
make
make DESTDIR=$PKG install
2019-02-20 15:03:43 +01:00
ln -s ../lib/p11-kit/trust-extract-compat \
$PKG/usr/bin/update-ca-trust
2018-04-02 12:01:59 +02:00
rm -r $PKG/usr/share/gtk-doc
}