summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Swift2019-07-04 14:47:24 -0400
committerMikhail Swift2019-07-04 14:47:24 -0400
commit6e113e28e772e8734cb6b2a02f91fb290f9030c4 (patch)
tree44c9929d3a5b24f0a5b06dda886ffe37138e31c8
parentffad959b40c0ff6c1fb2f480619430f954e0f9cb (diff)
downloadaur-6e113e28e772e8734cb6b2a02f91fb290f9030c4.tar.gz
Update build to use gomod
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD19
2 files changed, 7 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2d95c41941e..92d87acee19 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
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.gd590b2b
- pkgrel = 2
+ pkgver = 0.5.r6.g787bff1
+ pkgrel = 1
url = https://github.com/jesseduffield/lazydocker
arch = 1686
arch = x86_64
@@ -10,7 +10,6 @@ pkgbase = lazydocker-git
arch = aarch64
license = MIT
makedepends = go
- makedepends = dep
provides = lazydocker
conflicts = lazydocker
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index faa447b4cd3..345fbde7e69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Mikhail Swift <mikhail.swift@gmail.com>
pkgname=lazydocker-git
_pkgname=lazydocker
-pkgver=0.2.4.r2.gd590b2b
-pkgrel=2
+pkgver=0.5.r6.g787bff1
+pkgrel=1
pkgdesc='A simple terminal UI for docker and docker-compose, written in Go with the gocui library.'
arch=('1686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://github.com/jesseduffield/lazydocker'
license=('MIT')
options=('!strip' '!emptydirs')
-makedepends=('go' 'dep')
+makedepends=('go')
conflicts=('lazydocker')
provides=('lazydocker')
source=("${_pkgname}::git+https://github.com/jesseduffield/lazydocker.git#branch=master")
@@ -19,17 +19,8 @@ pkgver() {
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
+ cd "${_pkgname}"
go build \
-gcflags=all=-trimpath=${PWD} \
-asmflags=all=-trimpath=${PWD} \
@@ -41,5 +32,5 @@ build() {
}
package() {
- install -Dm755 gopath/src/github.com/jesseduffield/lazydocker/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
+ install -Dm755 "${_pkgname}/${_pkgname}" ${pkgdir}/usr/bin/${_pkgname}
}