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
|
name: p11-kit
|
||||||
description: Loads and enumerates PKCS#11 modules
|
description: Loads and enumerates PKCS#11 modules
|
||||||
version: 0.25.3
|
version: 0.25.9
|
||||||
revision: 4
|
|
||||||
url: https://p11-glue.freedesktop.org/
|
url: https://p11-glue.freedesktop.org/
|
||||||
license: BSD
|
license: BSD
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["libffi","libtasn1"]
|
depends: ["glibc","libffi","libtasn1"]
|
||||||
make_depends: ["meson"]
|
make_depends: ["meson","gnutls"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,31 +15,20 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir p11-build
|
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dtrust_paths=/etc/pki/anchors build
|
||||||
cd p11-build
|
meson compile -C build
|
||||||
|
|
||||||
meson setup .. \
|
|
||||||
--prefix=/usr \
|
|
||||||
--libdir=/usr/lib \
|
|
||||||
--buildtype=release \
|
|
||||||
-Dtrust_paths=/etc/pki/anchors
|
|
||||||
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
|
meson test -C build --print-errorlogs
|
||||||
|
|
||||||
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
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
meson install --destdir="$BPM_OUTPUT"
|
|
||||||
|
|
||||||
# Make symbolic link
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user