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
|
name: bc
|
||||||
description: Arbitrary numeric processing language
|
description: Arbitrary numeric processing language
|
||||||
version: 6.7.5
|
version: 7.0.3
|
||||||
revision: 3
|
|
||||||
url: https://www.gnu.org/software/bc/
|
url: https://www.gnu.org/software/bc/
|
||||||
license: GPL
|
license: GPL
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,7 +15,11 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
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
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,5 +34,6 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package licence
|
||||||
install -Dm644 LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/bc/LICENSE.md
|
install -Dm644 LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/bc/LICENSE.md
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user