summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLorenzo Fontana2019-01-19 13:14:25 +0100
committerLorenzo Fontana2019-01-19 13:14:25 +0100
commitc8660dd04893dfff5fbf4567351ae3c257fcebbe (patch)
tree6396db978c5486a416e5e12f27b38a7158425c80 /PKGBUILD
downloadaur-c8660dd04893dfff5fbf4567351ae3c257fcebbe.tar.gz
Initial package revision
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d94a60ed195
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Lorenzo Fontana <lo@linux.com>
+pkgname=kubectl-trace-git
+_pkgname=kubectl-trace
+pkgver=116.3e8de86
+pkgrel=1
+pkgdesc="Schedule bpftrace programs on your kubernetes cluster using the kubectl "
+makedepends=("go" "make")
+arch=("any")
+url="https://github.com/iovisor/kubectl-trace"
+license=("MIT")
+provides=("kubectl-trace")
+
+source=("git+https://github.com/iovisor/kubectl-trace.git")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make clean
+ make _output/bin/$_pkgname
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+ cd "_output/bin"
+ install -D -m755 "kubectl-trace" "$pkgdir/usr/bin/kubectl-trace"
+}
+