compat-32/p11-kit-32/Pkgfile

31 lines
815 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
2021-01-19 10:29:50 +01:00
version=0.23.22
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() {
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 \
2019-02-25 12:11:00 +01:00
--with-trust-paths=/etc/pki/anchors
2018-04-04 12:24:03 +02:00
make
make DESTDIR=$PKG install
2019-02-25 12:11:00 +01:00
rm -r \
$PKG/etc $PKG/usr/{bin,include,share} \
$PKG/usr/lib32/p11-kit/{trust-extract-compat,p11-kit-{remote,server}}
2018-04-04 12:24:03 +02:00
}