makedeb
A simple terminal UI for docker and docker-compose, written in Go with the gocui library.
Click here to go back to the commit logs for lazydocker.
Hash: e74ce93a28d2871413b95e1ef720c8e6d2716128
Message: Properly pass in version to go build ldflags option
* Set extflags to the LDFLAGS environment variable
* Re-add main.version ldflag for go link
diff --git a/.SRCINFO b/.SRCINFO
index 1bbc79c..bd732f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = lazydocker
pkgdesc = A simple terminal UI for docker and docker-compose, written in Go with the gocui library.
pkgver = 0.8
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/jesseduffield/lazydocker
arch = 1686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index ea9548a..47cfbd2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mikhail Swift <mikhail.swift@gmail.com>
pkgname=lazydocker
pkgver=0.8
-pkgrel=2
+pkgrel=3
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'
@@ -15,9 +15,8 @@ build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
- export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- go build -o ${pkgname} main.go
+ go build -o ${pkgname} -ldflags "-extldflags ${LDFLAGS} -s -w -X main.version=${pkgver}" main.go
}
package() {