Date: Friday, July 16, 2021 @ 12:27:33
  Author: kpcyrd
Revision: 977607

addpkg: cargo-flamegraph 0.3.1-1

Added:
  cargo-flamegraph/
  cargo-flamegraph/repos/
  cargo-flamegraph/trunk/
  cargo-flamegraph/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: cargo-flamegraph/trunk/PKGBUILD
===================================================================
--- cargo-flamegraph/trunk/PKGBUILD                             (rev 0)
+++ cargo-flamegraph/trunk/PKGBUILD     2021-07-16 12:27:33 UTC (rev 977607)
@@ -0,0 +1,34 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+pkgname=cargo-flamegraph
+pkgver=0.3.1
+pkgrel=1
+pkgdesc='Easy flamegraphs for Rust projects and everything else'
+url="https://github.com/flamegraph-rs/flamegraph";
+depends=('perf')
+makedepends=('cargo')
+arch=('x86_64')
+license=('MIT' 'Apache')
+source=(https://github.com/flamegraph-rs/flamegraph/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('37a193afb54af61003efcc969b544af3495ab59d9e61dad7deb154d3f11f8bb589eb8edbe7a2da50d8dbdbaea29a8c845f3d71e53e93b4f8b164630d1cc37106')
+
+build() {
+  cd "flamegraph-${pkgver}"
+  cargo build --release --locked
+}
+
+check() {
+  cd "flamegraph-${pkgver}"
+  cargo test --release --locked
+}
+
+package() {
+  cd "flamegraph-${pkgver}"
+  install -Dm755 -t "${pkgdir}/usr/bin" \
+    target/release/cargo-flamegraph \
+    target/release/flamegraph
+  install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to