diff --git a/pkg.info b/pkg.info index 91ac859..7213078 100644 --- a/pkg.info +++ b/pkg.info @@ -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: + - enumdev@enumerated.dev 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 diff --git a/source.sh b/source.sh index f6bee9a..6c47c23 100644 --- a/source.sh +++ b/source.sh @@ -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 }