From 7a31c27cc52a950396746c620c7fb446fe7dace5 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 11 May 2025 20:16:06 +0300 Subject: [PATCH] Update package version to 3.5.0 --- check-version.sh | 12 ++++++++++++ pkg.info | 5 ++--- source.sh | 3 +++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..dd64db5 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="openssl/openssl" + +# Get tag name using Github Rest API +TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index b7bc838..169952b 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: openssl description: The Open Source toolkit for Secure Sockets Layer and Transport Layer Security -version: 3.2.1 -revision: 2 +version: 3.5.0 url: https://www.openssl.org/ license: Apache2 architecture: any depends: ["glibc","perl"] -make_depends: ["binutils","coreutils","gcc","make","perl"] +optional_depends: ["make-ca"] type: source diff --git a/source.sh b/source.sh index 4238ac1..c6cb636 100644 --- a/source.sh +++ b/source.sh @@ -36,4 +36,7 @@ package() { make MANSUFFIX=ssl DESTDIR="$BPM_OUTPUT" install mkdir -p "$BPM_OUTPUT"/usr/share/doc/openssl cp -vfr doc/* "$BPM_OUTPUT"/usr/share/doc/openssl + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/openssl/LICENSE.txt }