compat-32/p11-kit-32/Pkgfile

30 lines
859 B
Plaintext
Raw Normal View History

2018-04-04 12:24:03 +02:00
# Description: Provides a way to load and enumerate PKCS#11 modules
2019-02-25 12:11:00 +01:00
# URL: https://p11-glue.github.io/p11-glue/p11-kit.html
2018-04-04 12:24:03 +02:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2019-08-27 13:48:19 +02:00
# Depends on: libffi-32 libtasn1-32 p11-kit
2018-04-04 12:24:03 +02:00
name=p11-kit-32
2024-07-05 23:25:41 +02:00
version=0.25.5
2018-04-04 12:24:03 +02:00
release=1
2020-02-01 11:53:36 +01:00
source=(https://github.com/p11-glue/${name%-*}/releases/download/$version/${name%-*}-$version.tar.xz)
2018-04-04 12:24:03 +02:00
build() {
2021-11-15 13:05:59 +01:00
meson setup p11-kit-$version build \
2018-04-04 12:24:03 +02:00
--prefix=/usr \
--libdir=/usr/lib32 \
--libexecdir=/usr/lib32 \
2021-11-15 13:05:59 +01:00
--buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D trust_paths=/etc/pki/anchors \
-D module_path=/usr/lib/pkcs11 \
-D nls=false
meson compile -C build
DESTDIR=$PKG meson install -C build
2018-04-04 12:24:03 +02:00
2019-02-25 12:11:00 +01:00
rm -r \
2021-11-15 13:05:59 +01:00
$PKG/etc $PKG/usr/{bin,lib,include,share} \
2019-02-25 12:11:00 +01:00
$PKG/usr/lib32/p11-kit/{trust-extract-compat,p11-kit-{remote,server}}
2018-04-04 12:24:03 +02:00
}