1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Symbol dumper for Firefox"
7 url="https://github.com/mozilla/dump_syms"
10 depends=(gcc-libs openssl bzip2)
11 makedepends=(cargo git)
13 _commit=8119eb37c1518985373bc55fdb058ab313a69f18 # tags/v2.0.0^0
14 source=("git+$url#commit=$_commit")
18 export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
21 export CARGO_PROFILE_RELEASE_DEBUG=2
25 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
30 cargo fetch --locked --target x86_64-unknown-linux-gnu
35 cargo build --release --frozen --all-targets
40 cargo test --release --frozen
45 install -Dt "$pkgdir/usr/bin" target/release/dump_syms
46 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE*