Update package version to 7.0.3
This commit is contained in:
@@ -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,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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user