summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Swift2019-06-30 12:34:04 -0400
committerMikhail Swift2019-06-30 12:34:04 -0400
commit73622817c066fa02a350c4578de4e50d380ea8ba (patch)
tree803d40f4d8946a7ba697f70c590ca51aec8778e9
downloadaur-73622817c066fa02a350c4578de4e50d380ea8ba.tar.gz
Add lazydocker-git package
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD51
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3d9b3fa6d27
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lazydocker-git
+ pkgdesc = A simple terminal UI for docker and docker-compose, written in Go with the gocui library.
+ pkgver = 0.2.4.r2.d590b2b
+ pkgrel = 1
+ url = https://github.com/jesseduffield/lazydocker
+ arch = x86_64
+ license = MIT
+ makedepends = go
+ makedepends = dep
+ provides = lazydocker
+ conflicts = lazydocker
+ options = !strip
+ options = !emptydirs
+ source = lazydocker::git+https://github.com/jesseduffield/lazydocker.git#branch=master
+ sha1sums = SKIP
+
+pkgname = lazydocker-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..71b14742960
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+lazydocker/
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bbf8d235d69
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Mikhail Swift <mikhail.swift@gmail.com>
+pkgname=lazydocker-git
+_pkgname=lazydocker
+pkgver=0.2.4.r2.gd590b2b
+pkgrel=1
+pkgdesc='A simple terminal UI for docker and docker-compose, written in Go with the gocui library.'
+arch=('x86_64')
+url='https://github.com/jesseduffield/lazydocker'
+license=('MIT')
+options=('!strip' '!emptydirs')
+makedepends=('go' 'dep')
+conflicts=('lazydocker')
+provides=('lazydocker')
+source=("${_pkgname}::git+https://github.com/jesseduffield/lazydocker.git#branch=master")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ mkdir -p gopath/src/github.com/jesseduffield/
+ ln -rTsf ${_pkgname} gopath/src/github.com/jesseduffield/lazydocker
+ export GOPATH="${srcdir}/gopath"
+ cd gopath/src/github.com/jesseduffield/lazydocker
+ dep ensure
+}
+
+build() {
+ export GOPATH="${srcdir}/gopath"
+ cd gopath/src/github.com/jesseduffield/lazydocker
+ go build \
+ -gcflags=all=-trimpath=${PWD} \
+ -asmflags=all=-trimpath=${PWD} \
+ -ldflags=-extldflags=-zrelro \
+ -ldflags=-extldflags=-znow \
+ -ldflags "-s -w -X main.version=${pkgver}" \
+ -o ${pkgname} \
+ main.go
+}
+
+check() {
+ export GOPATH="${srcdir}/gopath"
+ cd gopath/src/github.com/jesseduffield/lazydocker
+ ./test.sh
+}
+
+package() {
+ install -Dm755 gopath/src/github.com/jesseduffield/lazydocker/${pkgname} ${pkgdir}/usr/bin/${pkgname}
+}