Update package version to 1.8.3

This commit is contained in:
2025-09-17 21:55:37 +03:00
parent b54a8553aa
commit 79d4ad58bb
3 changed files with 22 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="libunwind/libunwind"
# 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"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+2 -1
View File
@@ -1,7 +1,8 @@
name: libunwind name: libunwind
description: C API for determining the call-chain of a program description: C API for determining the call-chain of a program
version: 1.8.1 version: 1.8.3
url: https://www.nongnu.org/libunwind/ url: https://www.nongnu.org/libunwind/
license: MIT license: MIT
architecture: any architecture: any
depends: ["glibc","xz-utils","zlib"]
type: source type: source
+8
View File
@@ -10,12 +10,19 @@ FILENAME="${DOWNLOAD##*/}"
prepare() { prepare() {
wget "$DOWNLOAD" wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Fix GCC 15 error
sed -i '/func.s/s/s//' tests/Gtest-nomalloc.c
autoreconf -fi
} }
# 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() {
./configure --prefix=/usr --disable-static ./configure --prefix=/usr --disable-static
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
@@ -30,5 +37,6 @@ check() {
package() { package() {
make DESTDIR="$BPM_OUTPUT" install make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/libunwind/COPYING install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/libunwind/COPYING
} }