Update package version to 0.19_20260627
This commit is contained in:
+5
-2
@@ -6,7 +6,10 @@ REPO="json-c/json-c"
|
||||
# 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"/tags | jq -r '.[0].name')
|
||||
|
||||
# Trim prefix and suffix
|
||||
VERSION=$(echo "$TAG_NAME" | cut -d '-' -f3)
|
||||
# Trim prefix
|
||||
VERSION=${TAG_NAME//json-c-/}
|
||||
|
||||
# Replace '-' with '_'
|
||||
VERSION=${VERSION//-/_}
|
||||
|
||||
echo "$VERSION"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: json-c
|
||||
description: A JSON implementation in C
|
||||
version: "0.18"
|
||||
revision: 2
|
||||
version: "0.19_20260627"
|
||||
revision: 1
|
||||
url: https://github.com/json-c/json-c
|
||||
license: MIT
|
||||
maintainers:
|
||||
@@ -13,8 +13,10 @@ depends:
|
||||
make_depends:
|
||||
- cmake
|
||||
- ninja
|
||||
check_depends:
|
||||
- xxd
|
||||
downloads:
|
||||
- url: https://s3.amazonaws.com/json-c_releases/releases/json-c-${BPM_PKG_VERSION}.tar.gz
|
||||
- url: https://github.com/json-c/json-c/releases/download/json-c-${BPM_PKG_VERSION//_/-}/json-c-${BPM_PKG_VERSION%_*}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724
|
||||
checksum: 37ad0249902e301bd9052bf712e511fcc6acff4ecaad4b5900aad9ce564e26de
|
||||
|
||||
@@ -17,7 +17,7 @@ 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() {
|
||||
ctest --test-dir build
|
||||
ctest --test-dir build --output-on-failure --stop-on-failure
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
|
||||
Reference in New Issue
Block a user