Update package version to 7.0.3

This commit is contained in:
2025-08-15 18:50:45 +03:00
parent 20e5a1bc0e
commit 99e130ff5d
3 changed files with 17 additions and 4 deletions
+9
View File
@@ -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"
+1 -2
View File
@@ -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
+6 -1
View File
@@ -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
}
@@ -30,5 +34,6 @@ check() {
package() {
make DESTDIR="$BPM_OUTPUT" install
# Install package licence
install -Dm644 LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/bc/LICENSE.md
}