summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--Makefile2
-rw-r--r--PKGBUILD49
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e10b89450dd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = k8stail
+ pkgdesc = Watch kubernetes logstreams filtering with namespace and labels, like tail -f
+ pkgver = 0.5.1
+ pkgrel = 1
+ url = https://github.com/dtan4/k8stail
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = go
+ makedepends = go-bindata
+ makedepends = make
+ makedepends = glide
+ depends = glibc
+ depends = bash
+ source = k8stail-0.5.1.tar.gz::https://github.com/dtan4/k8stail/archive/v0.5.1.tar.gz
+ md5sums = bd893081cbe9e9fbd29ccff7193c869b
+
+pkgname = k8stail
+
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..b8ec5555f11
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+clean:
+ rm -rf src pkg *.gz *.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62b0a8cf703
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: larte <lauri.arte@gmail.com>
+pkgname=k8stail
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Watch kubernetes logstreams filtering with namespace and labels, like tail -f"
+arch=('x86_64' 'i686')
+url="https://github.com/dtan4/k8stail"
+license=('MIT')
+depends=('glibc')
+makedepends=('go' 'go-bindata' 'make' 'glide')
+_archive=k8stail-$pkgver
+source=($_archive.tar.gz::https://github.com/dtan4/k8stail/archive/v$pkgver.tar.gz)
+md5sums=('bd893081cbe9e9fbd29ccff7193c869b')
+
+
+prepare() {
+ cd $srcdir/$_archive
+ msg2 "Patching makefile"
+ sed -i -e 's/REVISION.*:=.*/REVISION := "aur-pkgbuild"/' Makefile
+
+ msg2 "mkdir -p $srcdir/go/src/github.com/dtan4"
+ mkdir -p $srcdir/go/src/github.com/dtan4
+
+ msg2 "ln -sf $srcdir/$_archive $srcdir/go/src/github.com/dtan4/$archive"
+ ln -sf $srcdir/$_archive $srcdir/go/src/github.com/dtan4/$archive
+}
+
+build() {
+ cd $srcdir/go/src/github.com/dtan4/$_archive
+ export GOPATH=$srcdir/go
+ export GOBIN="$srcdir/bin"
+ export PATH=$PATH:$GOPATH/bin
+
+ make deps
+ make install
+ #GOPATH=$srcdir/go go install -ldflags="-s -w -X \"main.Version=$pkgver\" -X \"main.Revision=aur-pkgbuild\""
+}
+
+check() {
+ cd $srcdir/go/src/github.com/dtan4/$_archive
+ GOPATH="$srcdir/go" make test
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin"
+ install -p -m755 "$srcdir/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/k8stail"
+ install -Dm644 $srcdir/$_archive/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+}