From 56bf5c621eb96f07aaa2d29ab58c96e28549e1a1 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 10 Sep 2025 11:42:07 +0300 Subject: [PATCH] Update package version to 3.3.1 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 11 +++++++---- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..1109473 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Github repository +REPO="google/double-conversion" + +# 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') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 91757b1..7a4557e 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: double-conversion description: Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles -version: 3.3.0 -revision: 2 +version: 3.3.1 url: https://github.com/google/double-conversion license: BSD-3-Clause architecture: any diff --git a/source.sh b/source.sh index fbd0c7d..049da08 100644 --- a/source.sh +++ b/source.sh @@ -21,23 +21,26 @@ build() { cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=ON \ - .. - make + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. + cmake --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 build - make test + + ctest } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { cd build - make DESTDIR="$BPM_OUTPUT" install + + DESTDIR="$BPM_OUTPUT" cmake --install . + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/double-conversion/LICENSE install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/double-conversion/COPYING }