new version

did some minor PKGBUILD changes
This commit is contained in:
Christian Rebischke 2018-02-14 09:04:10 +00:00
parent 2705245a80
commit a1730118ac

View File

@ -2,7 +2,7 @@
pkgname='vault' pkgname='vault'
pkgdesc='A tool for managing secrets' pkgdesc='A tool for managing secrets'
pkgver='0.9.1' pkgver='0.9.3'
pkgrel='1' pkgrel='1'
url='https://vaultproject.io/' url='https://vaultproject.io/'
license=('MPL') license=('MPL')
@ -11,7 +11,7 @@ makedepends=('go-pie' 'git')
depends=('glibc') depends=('glibc')
install='vault.install' install='vault.install'
backup=('etc/vault.hcl') backup=('etc/vault.hcl')
_vault_commit='87b6919dea55da61d7cd444b2442cabb8ede8ab1' _vault_commit='5acd6a21d5a69ab49d0f7c0bf540123a9b2c696d'
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}" source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
'vault.service' 'vault.service'
'vault.sysusers' 'vault.sysusers'
@ -27,16 +27,16 @@ prepare () {
export GOPATH="${srcdir}" export GOPATH="${srcdir}"
export PATH="$PATH:$GOPATH/bin" export PATH="$PATH:$GOPATH/bin"
mkdir -p src/github.com/hashicorp/ mkdir -p src/github.com/hashicorp/
mv ${pkgname} src/github.com/hashicorp/ mv "${pkgname}" src/github.com/hashicorp/
} }
build () { build () {
cd src/github.com/hashicorp/${pkgname} cd src/github.com/hashicorp/"${pkgname}"
go build -o vault-binary go build -o vault-binary
} }
package () { package () {
cd src/github.com/hashicorp/${pkgname} cd src/github.com/hashicorp/"${pkgname}"
install -Dm755 vault-binary "${pkgdir}/usr/bin/vault" install -Dm755 vault-binary "${pkgdir}/usr/bin/vault"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl" install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl"