From 99e130ff5d697d4b825104f9e437d6692d2ee5c9 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 15 Aug 2025 18:50:45 +0300 Subject: [PATCH] Update package version to 7.0.3 --- check-version.sh | 9 +++++++++ pkg.info | 3 +-- source.sh | 9 +++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..e439ca1 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Github repository +REPO="gavinhoward/bc" + +# Get tag name using Github Rest API +VERSION=$(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') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 29c6573..8057b2b 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: bc description: Arbitrary numeric processing language -version: 6.7.5 -revision: 3 +version: 7.0.3 url: https://www.gnu.org/software/bc/ license: GPL architecture: any diff --git a/source.sh b/source.sh index 5b63dd9..6fa2794 100644 --- a/source.sh +++ b/source.sh @@ -15,7 +15,11 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - CC=gcc ./configure --prefix=/usr -G -O3 -r + # Set CC and CFLAGS environments variables + export CFLAGS="${CFLAGS} -std=c99" + export CC=gcc + + ./configure --prefix=/usr -G -O3 -r make } @@ -29,6 +33,7 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install - + + # Install package licence install -Dm644 LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/bc/LICENSE.md }