Add libffi dependency and switch to meson commands
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user