diff --git a/PKGBUILD b/PKGBUILD index aea1c94..5f1e833 100644 --- a/PKGBUILD +++ b/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 }