Add libffi dependency and switch to meson commands

This commit is contained in:
2025-08-14 18:54:28 +03:00
parent aafca6b874
commit 91af487845
2 changed files with 12 additions and 5 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
name: p11-kit
description: Loads and enumerates PKCS#11 modules
version: 0.25.3
revision: 3
revision: 4
url: https://p11-glue.freedesktop.org/
license: BSD
architecture: any
depends: ["libtasn1"]
depends: ["libffi","libtasn1"]
make_depends: ["meson"]
type: source
+9 -3
View File
@@ -17,27 +17,33 @@ prepare() {
build() {
mkdir p11-build
cd p11-build
meson setup .. \
--prefix=/usr \
--libdir=/usr/lib \
--buildtype=release \
-Dtrust_paths=/etc/pki/anchors
ninja
meson compile
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
cd p11-build
LC=ALL=C ninja test
LC=ALL=C meson test
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd p11-build
DESTDIR="$BPM_OUTPUT" ninja install
meson install --destdir="$BPM_OUTPUT"
# Make symbolic link
ln -sfv /usr/libexec/p11-kit/trust-extract-compat "$BPM_OUTPUT"/usr/bin/update-ca-certificates
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/p11-kit/COPYING
}