Switch to new download format
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
name: libunwind
|
||||
description: C API for determining the call-chain of a program
|
||||
version: 1.8.3
|
||||
revision: 2
|
||||
url: https://www.nongnu.org/libunwind/
|
||||
license: MIT
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
depends: ["glibc","xz-utils","zlib"]
|
||||
type: source
|
||||
depends:
|
||||
- glibc
|
||||
- xz-utils
|
||||
- zlib
|
||||
downloads:
|
||||
- url: https://github.com/libunwind/libunwind/releases/download/v${BPM_PKG_VERSION}/libunwind-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: be30d910e67f58d82e753231f1357f326a1a088acf126b21ff77e60aab19b90b
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user