# Maintainer : Christian Rebischke pkgname='vault' pkgdesc='A tool for managing secrets' pkgver='0.9.0' pkgrel='2' url='https://vaultproject.io/' license=('MPL') arch=('x86_64') makedepends=('go-pie' 'git') depends=('glibc') install='vault.install' backup=('etc/vault.hcl') _vault_commit='bdac1854478538052ba5b7ec9a9ec688d35a3335' source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}" 'vault.service' 'vault.hcl') sha512sums=('SKIP' '1e67fe594198e42faf81eeb78eaa9904d832a04580c82cd5639b983bab850a01f33f4b43de43b4e3403ee7820236ab49c8b91a26981c47b9a2c6938b4c0b6be3' '46106cc76151eef2dd5e4b2caa6a96aae4d6ce1ecbf977dcc8667a3f6c829cbea95133622adafcb15cdfaa066ecc94c73c983e7613ee2f6573694981569729fe') prepare () { export GOPATH="${srcdir}" export PATH="$PATH:$GOPATH/bin" mkdir -p src/github.com/hashicorp/ mv ${pkgname} src/github.com/hashicorp/ } build () { cd src/github.com/hashicorp/${pkgname} go build -o vault-binary } package () { cd src/github.com/hashicorp/${pkgname} install -Dm755 vault-binary "${pkgdir}/usr/bin/vault" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl" install -Dm644 "${srcdir}/vault.service" "${pkgdir}/usr/lib/systemd/system/vault.service" for file in README.md CHANGELOG.md ; do install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}" done }