blob: 171806022468a3a8bee7c24c41cea244a9887680 (
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: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: libffi-32 libtasn1-32 p11-kit
5
6 name=p11-kit-32
7 version=0.24.1
8 release=1
9 source=(https://github.com/p11-glue/${name%-*}/releases/download/$version/${name%-*}-$version.tar.xz)
10
11 build() {
12 meson setup p11-kit-$version build \
13 --prefix=/usr \
14 --libdir=/usr/lib32 \
15 --libexecdir=/usr/lib32 \
16 --buildtype=plain \
17 --wrap-mode=nodownload \
18 -D b_lto=true \
19 -D b_pie=true \
20 -D trust_paths=/etc/pki/anchors \
21 -D module_path=/usr/lib/pkcs11 \
22 -D nls=false
23 meson compile -C build
24 DESTDIR=$PKG meson install -C build
25
26 rm -r \
27 $PKG/etc $PKG/usr/{bin,lib,include,share} \
28 $PKG/usr/lib32/p11-kit/{trust-extract-compat,p11-kit-{remote,server}}
29 }
|