Add libffi dependency and switch to meson commands
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
name: p11-kit
|
name: p11-kit
|
||||||
description: Loads and enumerates PKCS#11 modules
|
description: Loads and enumerates PKCS#11 modules
|
||||||
version: 0.25.3
|
version: 0.25.3
|
||||||
revision: 3
|
revision: 4
|
||||||
url: https://p11-glue.freedesktop.org/
|
url: https://p11-glue.freedesktop.org/
|
||||||
license: BSD
|
license: BSD
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["libtasn1"]
|
depends: ["libffi","libtasn1"]
|
||||||
|
make_depends: ["meson"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -17,27 +17,33 @@ prepare() {
|
|||||||
build() {
|
build() {
|
||||||
mkdir p11-build
|
mkdir p11-build
|
||||||
cd p11-build
|
cd p11-build
|
||||||
|
|
||||||
meson setup .. \
|
meson setup .. \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
-Dtrust_paths=/etc/pki/anchors
|
-Dtrust_paths=/etc/pki/anchors
|
||||||
ninja
|
meson compile
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd p11-build
|
cd p11-build
|
||||||
LC=ALL=C ninja test
|
|
||||||
|
LC=ALL=C meson test
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd p11-build
|
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
|
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
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/p11-kit/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user