diff --git a/pkg.info b/pkg.info index 42b6ee2..8fa02b9 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh index d3d7293..8e5359d 100644 --- a/source.sh +++ b/source.sh @@ -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 }