Bert Peters pushed to branch main at Arch Linux / Packaging / Packages /
cargo-flamegraph
Commits:
daf311e5 by Bert Peters at 2024-12-22T21:17:35+01:00
upgpkg: 0.6.7-2: include completions
Fixes #2
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = cargo-flamegraph
pkgdesc = Easy flamegraphs for Rust projects and everything else
pkgver = 0.6.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/flamegraph-rs/flamegraph
arch = x86_64
license = MIT
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=cargo-flamegraph
pkgver=0.6.7
-pkgrel=1
+pkgrel=2
pkgdesc='Easy flamegraphs for Rust projects and everything else'
url="https://github.com/flamegraph-rs/flamegraph"
depends=(
@@ -20,6 +20,11 @@
b2sums=('c6aef00e91a3c8d8018b1da9bc7a186b37ef5570be016656c0502555820aa94f2429fe3
build() {
cd "flamegraph-${pkgver}"
cargo build --release --locked
+
+ # Generate completion scripts
+ target/release/flamegraph --completions bash > flamegraph
+ target/release/flamegraph --completions zsh > _flamegraph
+ target/release/flamegraph --completions fish > flamegraph.fish
}
check() {
@@ -34,6 +39,9 @@ package() {
target/release/flamegraph
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 flamegraph -t
"${pkgdir}/usr/share/bash-completion/completions"
+ install -Dm644 _flamegraph -t "${pkgdir}/usr/share/zsh/site-functions"
+ install -Dm644 flamegraph.fish -t
"${pkgdir}/usr/share/fish/vendor_completions.d"
}
# vim:set ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-flamegraph/-/commit/daf311e57cd784c3edf4f48a3562da2c90cf22fc
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-flamegraph/-/commit/daf311e57cd784c3edf4f48a3562da2c90cf22fc
You're receiving this email because of your account on gitlab.archlinux.org.