Add minidump-stackwalk
A maintained alternative to minidump_stackwalk from breakpad
This commit is contained in:
47
mingw-w64-minidump-stackwalk/PKGBUILD
Normal file
47
mingw-w64-minidump-stackwalk/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
|
||||
|
||||
_realname=minidump-stackwalk
|
||||
_projectname=rust-minidump
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=0.12.0
|
||||
pkgrel=1
|
||||
pkgdesc="Provides both machine-readable and human-readable digests of a minidump, with backtraces and symbolication (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
|
||||
url='https://github.com/rust-minidump/rust-minidump/tree/main/minidump-stackwalk'
|
||||
license=('spdx:MIT')
|
||||
makedepends=(
|
||||
"${MINGW_PACKAGE_PREFIX}-rust"
|
||||
)
|
||||
source=("${_realname}-${pkgver}.tar.gz::https://github.com/rust-minidump/rust-minidump/archive/refs/tags/${pkgver}.tar.gz")
|
||||
sha256sums=('231a2f6bcd8ef829c0688dbb6cb0b074e89a35e3d76648b10dfbd150f7ed19a0')
|
||||
|
||||
prepare() {
|
||||
cp -r "${_projectname}-${pkgver}" "build-${MSYSTEM}"
|
||||
cd "build-${MSYSTEM}/minidump-stackwalk"
|
||||
|
||||
cargo fetch \
|
||||
--locked \
|
||||
--manifest-path "../Cargo.toml"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "build-${MSYSTEM}/minidump-stackwalk"
|
||||
|
||||
cargo build \
|
||||
--release \
|
||||
--frozen \
|
||||
--manifest-path "../Cargo.toml"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "build-${MSYSTEM}/minidump-stackwalk"
|
||||
|
||||
cargo install \
|
||||
--frozen \
|
||||
--offline \
|
||||
--no-track \
|
||||
--path . \
|
||||
--root "${pkgdir}${MINGW_PREFIX}"
|
||||
}
|
||||
Reference in New Issue
Block a user