archrelease: copy trunk to extra-x86_64
[arch-packages.git] / dump_syms / trunk / PKGBUILD
blobb57ea92cb77eaf9a9dc242cce7093caacf11afdb
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=dump_syms
4 pkgver=0.0.7
5 pkgrel=1
6 pkgdesc="Symbol dumper for Firefox"
7 url="https://github.com/mozilla/dump_syms"
8 arch=(x86_64)
9 license=(APACHE MIT)
10 depends=(gcc-libs openssl bzip2)
11 makedepends=(cargo git)
12 _commit=1899b09775037cd9466154dfbaf69abd4880e54c  # tags/v0.0.7
13 source=("git+$url#commit=$_commit")
14 sha512sums=('SKIP')
16 pkgver() {
17   cd $pkgname
18   git describe --tags | sed 's/^v//;s/-/+/g'
21 prepare() {
22   cd $pkgname
23   cargo fetch --locked --target x86_64-unknown-linux-gnu
26 build() {
27   cd $pkgname
28   cargo build --release --frozen --all-targets
31 check() {
32   cd $pkgname
33   cargo test --release --frozen
36 package() {
37   cd $pkgname
38   install -Dt "$pkgdir/usr/bin" target/release/dump_syms
39   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE*