Switch to new download format

This commit is contained in:
2026-05-01 12:39:16 +03:00
parent 97bb940492
commit 3ae530e8e1
2 changed files with 16 additions and 8 deletions
+4 -7
View File
@@ -2,18 +2,13 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/libunwind/libunwind/releases/download/v${BPM_PKG_VERSION}/libunwind-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
wget "$DOWNLOAD"
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
}
@@ -21,8 +16,10 @@ prepare() {
# This function is used to compile the source code
build() {
./configure --prefix=/usr --disable-static
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}