summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Fontana2019-01-19 13:14:25 +0100
committerLorenzo Fontana2019-01-19 13:14:25 +0100
commitc8660dd04893dfff5fbf4567351ae3c257fcebbe (patch)
tree6396db978c5486a416e5e12f27b38a7158425c80
downloadaur-c8660dd04893dfff5fbf4567351ae3c257fcebbe.tar.gz
Initial package revision
Signed-off-by: Lorenzo Fontana <lo@linux.com>
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD33
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c21f0d4926b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = kubectl-trace-git
+ pkgdesc = Schedule bpftrace programs on your kubernetes cluster using the kubectl
+ pkgver = 116.3e8de86
+ pkgrel = 1
+ url = https://github.com/iovisor/kubectl-trace
+ arch = any
+ license = MIT
+ makedepends = go
+ makedepends = make
+ provides = kubectl-trace
+ source = git+https://github.com/iovisor/kubectl-trace.git
+ sha256sums = SKIP
+
+pkgname = kubectl-trace-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..d45c44e5e82
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+src/
+pkg/
+*.tar.gz*
+*.pkg.tar.*
+kubectl-trace
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"
+}
+