Update package version to 0.25.9
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="p11-glue/p11-kit"
|
||||
|
||||
# Get tag name using Github Rest API
|
||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||
|
||||
echo "$TAG_NAME"
|
||||
@@ -1,10 +1,9 @@
|
||||
name: p11-kit
|
||||
description: Loads and enumerates PKCS#11 modules
|
||||
version: 0.25.3
|
||||
revision: 4
|
||||
version: 0.25.9
|
||||
url: https://p11-glue.freedesktop.org/
|
||||
license: BSD
|
||||
architecture: any
|
||||
depends: ["libffi","libtasn1"]
|
||||
make_depends: ["meson"]
|
||||
depends: ["glibc","libffi","libtasn1"]
|
||||
make_depends: ["meson","gnutls"]
|
||||
type: source
|
||||
|
||||
@@ -15,31 +15,20 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
mkdir p11-build
|
||||
cd p11-build
|
||||
|
||||
meson setup .. \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib \
|
||||
--buildtype=release \
|
||||
-Dtrust_paths=/etc/pki/anchors
|
||||
meson compile
|
||||
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dtrust_paths=/etc/pki/anchors build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# 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 meson test
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
# 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
|
||||
|
||||
meson install --destdir="$BPM_OUTPUT"
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Make symbolic link
|
||||
ln -sfv /usr/libexec/p11-kit/trust-extract-compat "$BPM_OUTPUT"/usr/bin/update-ca-certificates
|
||||
|
||||
Reference in New Issue
Block a user