summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44c7d0781a5d8522409c6477fa8520aa4792bcd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pkgname='dump_syms-git'
_pkgname="dump_syms"
pkgver=0.0.5.102.ge28a20b
pkgrel=1
arch=('x86_64' 'i686')
url="https://github.com/mozilla/dump_syms"
pkgdesc=" Rewrite of breakpad dump_syms tools in Rust"
license=('Apache' 'MIT')
depends=()
makedepends=('rust' 'cargo' 'git')
provides=('dump_syms')
conflicts=('dump_syms')
source=("$_pkgname::git+https://github.com/mozilla/dump_syms.git")
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build(){
  cd "$_pkgname"
  env CARGO_INCREMENTAL=0 cargo build --release --locked
}

package() {
	cd $_pkgname

	install -D -m755 "target/release/dump_syms" "$pkgdir/usr/bin/dump_syms"
}