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
|
2023-09-22 13:06:23 +00:00
|
|
|
pkgver=2.2.2
|
2022-05-27 19:30:42 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Symbol dumper for Firefox"
|
|
|
|
url="https://github.com/mozilla/dump_syms"
|
|
|
|
arch=(x86_64)
|
2023-02-15 02:14:52 +00:00
|
|
|
license=(
|
|
|
|
APACHE
|
|
|
|
MIT
|
|
|
|
)
|
|
|
|
depends=(gcc-libs)
|
|
|
|
makedepends=(
|
|
|
|
cargo
|
|
|
|
git
|
|
|
|
)
|
|
|
|
options=(!lto)
|
2023-09-22 13:06:23 +00:00
|
|
|
_commit=de0b5fc83a022ce20c72a3e6831b4613540e9fdb # tags/v2.2.2^0
|
2022-05-27 19:30:42 +00:00
|
|
|
source=("git+$url#commit=$_commit")
|
|
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE*
|
|
|
|
}
|
2022-11-22 01:49:14 +00:00
|
|
|
|
|
|
|
# vim:set sw=2 sts=-1 et:
|