mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 02:16:39 +02:00
49 lines
1.6 KiB
Text
49 lines
1.6 KiB
Text
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
|
|
"
|