Updated to new go guidelines
This commit is contained in:
parent
2276d9bf04
commit
dacd4ca67e
9
PKGBUILD
9
PKGBUILD
@ -5,11 +5,11 @@
|
||||
pkgname='vault'
|
||||
pkgdesc='A tool for managing secrets'
|
||||
pkgver='1.4.2'
|
||||
pkgrel='1'
|
||||
pkgrel='2'
|
||||
url="https://vaultproject.io/"
|
||||
license=('MPL')
|
||||
arch=('x86_64')
|
||||
makedepends=('go-pie' 'git' 'yarn' 'bower' 'nodejs-lts-dubnium' 'npm' 'zip'
|
||||
makedepends=('go' 'git' 'yarn' 'bower' 'nodejs-lts-dubnium' 'npm' 'zip'
|
||||
'go-bindata-hashicorp' 'go-bindata-assetfs' 'gox' 'go-tools')
|
||||
depends=('glibc')
|
||||
install='vault.install'
|
||||
@ -37,6 +37,11 @@ prepare () {
|
||||
|
||||
build () {
|
||||
cd $PACKAGE_ROOT
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||
XC_OSARCH='linux/amd64' make static-dist bin
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user