diff options
author | Mikhail Swift | 2020-05-25 11:26:30 -0400 |
---|---|---|
committer | Mikhail Swift | 2020-05-25 11:26:30 -0400 |
commit | c4ae455a5764977bbf2b50c48278c5bbd2cd2ff6 (patch) | |
tree | acf5a39596b1fef0434936c80cd7fbefeb5e48b7 /PKGBUILD | |
parent | 93c151fd8b3270c7043c7b00615d6618c5d77188 (diff) | |
download | aur-c4ae455a5764977bbf2b50c48278c5bbd2cd2ff6.tar.gz |
Update PKGBUILD to follow new go package guidelines
* Use the wiki's new guidelines for go packages to build lazydocker
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,7 +1,7 @@ # Maintainer: Mikhail Swift <mikhail.swift@gmail.com> pkgname=lazydocker-git _pkgname=lazydocker -pkgver=0.5.4.r4.gc04867b +pkgver=0.8.r6.g10617da 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') @@ -21,14 +21,11 @@ pkgver() { build() { cd "${_pkgname}" - 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 + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -o ${_pkgname} -ldflags "-extldflags ${LDFLAGS} -s -w -X main.version=${pkgver}" main.go } package() { |