forked from ports/compat-32
31 lines
814 B
Plaintext
31 lines
814 B
Plaintext
# Description: Provides a way to load and enumerate PKCS#11 modules
|
|
# URL: https://p11-glue.github.io/p11-glue/p11-kit.html
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libffi-32 libtasn1-32 p11-kit
|
|
|
|
name=p11-kit-32
|
|
version=0.24.0
|
|
release=1
|
|
source=(https://github.com/p11-glue/${name%-*}/releases/download/$version/${name%-*}-$version.tar.xz)
|
|
|
|
build() {
|
|
cd ${name%-*}-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32 \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--host=i686-pc-linux-gnu \
|
|
--with-module-path=/usr/lib32/pkcs11 \
|
|
--with-trust-paths=/etc/pki/anchors
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r \
|
|
$PKG/etc $PKG/usr/{bin,include,share} \
|
|
$PKG/usr/lib32/p11-kit/{trust-extract-compat,p11-kit-{remote,server}}
|
|
}
|