summaryrefslogtreecommitdiff
path: root/repo/system/libp11-kit.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/libp11-kit.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/libp11-kit.xibuild')
-rw-r--r--repo/system/libp11-kit.xibuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/repo/system/libp11-kit.xibuild b/repo/system/libp11-kit.xibuild
index e9e5e4a..8f6906b 100644
--- a/repo/system/libp11-kit.xibuild
+++ b/repo/system/libp11-kit.xibuild
@@ -5,7 +5,7 @@ DEPS=(glibc libtasn1 libffi)
SOURCE=https://github.com/p11-glue/p11-kit
DESC="Loads and enumerates PKCS#11 modules"
-build () {
+patch () {
sed '20,$ d' -i trust/trust-extract-compat &&
cat >> trust/trust-extract-compat << "EOF"
@@ -15,12 +15,17 @@ build () {
# Generate a new trust store
/usr/sbin/make-ca -f -g
EOF
+}
+build () {
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-trust-paths=/etc/pki/anchors
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
ln -sfv $PKG_DEST/usr/libexec/p11-kit/trust-extract-compat \
$PKG_DEST/usr/bin/update-ca-certificates