diff options
author | Oleg Shparber | 2020-09-07 18:46:43 -0400 |
---|---|---|
committer | Oleg Shparber | 2020-09-07 18:46:43 -0400 |
commit | 58142eeab82819144d5585c2e44e962b9e65b251 (patch) | |
tree | 117e57986a1748bebc9bc2cc5c513335c6aa4a07 | |
parent | ca2d39d5d2c8bf287a9a5b019f1cb09166c49db3 (diff) | |
download | aur-58142eeab82819144d5585c2e44e962b9e65b251.tar.gz |
follow Go package guidelines
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -22,7 +22,15 @@ pkgver() { } build() { + # https://wiki.archlinux.org/index.php/Go_package_guidelines + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + export GOPATH="$srcdir"/gopath + cd "$srcdir/$_pkgname" make build } |