Skip to content
Snippets Groups Projects
Commit 332b9769 authored by qaqland's avatar qaqland Committed by Natanael Copa
Browse files

testing/cargo-flamegraph: new aport

parent c60e995f
No related branches found
No related tags found
2 merge requests!79570community/firefox-esr: upgrade to 128.7.0,!77669testing/cargo-flamegraph: new aport
Pipeline #290199 skipped
maintainer="qaqland <qaq@qaq.land>"
pkgname=cargo-flamegraph
pkgver=0.6.7
pkgrel=0
pkgdesc="Easy flamegraphs for Rust projects and everything else, without Perl or pipes"
url="https://github.com/flamegraph-rs/flamegraph"
arch="all"
license="MIT OR Apache-2.0"
depends="perf"
makedepends="cargo cargo-auditable"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/flamegraph-rs/flamegraph/archive/v$pkgver/cargo-flamegraph-$pkgver.tar.gz"
builddir="$srcdir/flamegraph-$pkgver"
options="net !check" # cargo fetch; upstream no check
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
target/release/flamegraph --completions bash > flamegraph
target/release/flamegraph --completions fish > flamegraph.fish
target/release/flamegraph --completions zsh > _flamegraph
}
package() {
install -Dm755 target/release/flamegraph -t "$pkgdir"/usr/bin
install -Dm755 target/release/cargo-flamegraph -t "$pkgdir"/usr/bin
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
install -Dm644 LICENSE-MIT LICENSE-APACHE -t "$pkgdir"/usr/share/licenses/$pkgname
install -Dm644 flamegraph -t "$pkgdir"/usr/share/bash-completion/completions
install -Dm644 flamegraph.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d
install -Dm644 _flamegraph -t "$pkgdir"/usr/share/zsh/site-functions
}
sha512sums="
10b0a13d1d3f5b8953b3b0a5f75594cdb085553b5eb86b950a9458d90fee83144207f47e14a382b35827f7341fb9b4406a9f32fc87d4c514e4f782c9361a3b68 cargo-flamegraph-0.6.7.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment