summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f1fb753ae4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+pkgname=flamegraph
+pkgver=1.0
+pkgrel=1
+pkgdesc="Flame Graphs visualize profiled code"
+arch=('i686' 'x86_64')
+url="http://www.brendangregg.com/flamegraphs.html"
+license=('CDDL')
+depends=('perl')
+conflicts=('flamegraph' 'flamegraph-git')
+
+source=("https://github.com/brendangregg/FlameGraph/archive/v${pkgver}.tar.gz")
+sha256sums=('c5ba824228a4f7781336477015cb3b2d8178ffd86bccd5f51864ed52a5ad6675')
+
+package() {
+ _srcname=FlameGraph
+ cd "${srcdir}/${_srcname}-${pkgver}"
+
+ install -Dm755 flamegraph.pl "${pkgdir}/usr/bin/flamegraph.pl"
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+ install -Dm644 docs/cddl1.txt "${pkgdir}/usr/share/licenses/${pkgname}/cddl1.txt"
+}