mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added extra/dump_syms
This commit is contained in:
parent
b2bfe713ae
commit
0d63994961
1 changed files with 56 additions and 0 deletions
56
extra/dump_syms/PKGBUILD
Normal file
56
extra/dump_syms/PKGBUILD
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
# 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
|
||||||
|
pkgver=1.0.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Symbol dumper for Firefox"
|
||||||
|
url="https://github.com/mozilla/dump_syms"
|
||||||
|
arch=(x86_64)
|
||||||
|
license=(APACHE MIT)
|
||||||
|
depends=(gcc-libs openssl bzip2)
|
||||||
|
makedepends=(cargo git)
|
||||||
|
options=(debug !lto)
|
||||||
|
_commit=29c131802494c52e9e89597f1d763f79e797b348 # tags/v1.0.1
|
||||||
|
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*
|
||||||
|
}
|
Loading…
Reference in a new issue