2022-05-27 19:30:42 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable LTO
|
|
|
|
# - set ARM targets for cargo fetch
|
|
|
|
|
|
|
|
pkgname=dump_syms
|
2024-06-04 23:58:55 +00:00
|
|
|
pkgver=2.3.3
|
|
|
|
pkgrel=1
|
2022-05-27 19:30:42 +00:00
|
|
|
pkgdesc="Symbol dumper for Firefox"
|
|
|
|
url="https://github.com/mozilla/dump_syms"
|
|
|
|
arch=(x86_64)
|
2024-03-26 23:33:15 +00:00
|
|
|
license=('Apache-2.0 OR MIT')
|
|
|
|
depends=(
|
|
|
|
gcc-libs
|
|
|
|
glibc
|
2023-02-15 02:14:52 +00:00
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
cargo
|
|
|
|
git
|
|
|
|
)
|
|
|
|
options=(!lto)
|
2024-04-01 23:48:24 +00:00
|
|
|
source=("git+$url#tag=v$pkgver")
|
2024-06-04 23:58:55 +00:00
|
|
|
b2sums=('eb6a3ece0f686d5995237737b0e5895de33590e063124c4f26d839feba66b6d62dfb8781f85f710997762ce6f4a8ab0cdb005a889fa7c39b4e899546cc50c734')
|
2022-05-27 19:30:42 +00:00
|
|
|
|
|
|
|
# Use LTO
|
|
|
|
#export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
|
|
|
|
|
|
|
# Use debug
|
|
|
|
export CARGO_PROFILE_RELEASE_DEBUG=2
|
|
|
|
|
|
|
|
case "$CARCH" in
|
|
|
|
armv7h) target=armv7-unknown-linux-gnueabihf ;;
|
|
|
|
aarch64) target=aarch64-unknown-linux-gnu ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
cargo fetch --locked --target $target
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
|
|
|
cargo build --release --frozen --all-targets
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname
|
|
|
|
cargo test --release --frozen
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
install -Dt "$pkgdir/usr/bin" target/release/dump_syms
|
2024-03-26 23:33:15 +00:00
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE-MIT
|
2022-05-27 19:30:42 +00:00
|
|
|
}
|
2022-11-22 01:49:14 +00:00
|
|
|
|
|
|
|
# vim:set sw=2 sts=-1 et:
|