upgpkg: 1.9.1-1

This commit is contained in:
Justin Kromlinger 2021-12-10 08:50:03 +00:00
parent 9db8f61f22
commit 1054e2b9db

View File

@ -2,20 +2,21 @@
# Contributor: Tim Meusel <tim@bastelfreak.de> # Contributor: Tim Meusel <tim@bastelfreak.de>
# Contributor: Sebastian Rakel <sebastian@devunit.eu> # Contributor: Sebastian Rakel <sebastian@devunit.eu>
# Contributor: Justin Kromlinger <hashworks@archlinux.org> # Contributor: Justin Kromlinger <hashworks@archlinux.org>
# Contributor: Andrew Tyler <assimilat@gmail.com>
pkgname='vault' pkgname='vault'
pkgdesc='A tool for managing secrets' pkgdesc='A tool for managing secrets'
pkgver=1.9.0 pkgver=1.9.1
pkgrel=1 pkgrel=1
url="https://vaultproject.io/" url="https://vaultproject.io/"
license=('MPL') license=('MPL')
arch=('x86_64') arch=('x86_64')
makedepends=('go' 'git' 'yarn' 'bower' 'nodejs-lts-fermium' 'npm' 'zip' makedepends=('go' 'git' 'yarn' 'bower' 'nodejs-lts-fermium' 'npm' 'zip'
'go-bindata-hashicorp' 'go-bindata-assetfs' 'gox' 'go-tools') 'go-bindata-hashicorp' 'go-bindata-assetfs' 'gox' 'go-tools')
depends=('glibc') depends=('glibc')
install='vault.install' install='vault.install'
backup=('etc/vault.hcl') backup=('etc/vault.hcl')
_vault_commit='6dae166b52e0d65147991d143045ad929eb3d71b' _vault_commit='3d69cbbd35a8e7a51bd036849f39a7fd0eb9c2ca'
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,7 +28,7 @@ sha512sums=('SKIP'
'073f0f400cba78521cd2709ce86d88fbb14125117f9f3beca657f625d04eab8e00f7a01b5d9a1cfc03e9038844f5732bdbb1a85dd65a803d3f0b90f8bf87880e' '073f0f400cba78521cd2709ce86d88fbb14125117f9f3beca657f625d04eab8e00f7a01b5d9a1cfc03e9038844f5732bdbb1a85dd65a803d3f0b90f8bf87880e'
'46106cc76151eef2dd5e4b2caa6a96aae4d6ce1ecbf977dcc8667a3f6c829cbea95133622adafcb15cdfaa066ecc94c73c983e7613ee2f6573694981569729fe') '46106cc76151eef2dd5e4b2caa6a96aae4d6ce1ecbf977dcc8667a3f6c829cbea95133622adafcb15cdfaa066ecc94c73c983e7613ee2f6573694981569729fe')
prepare () { prepare() {
export GOPATH="${srcdir}" export GOPATH="${srcdir}"
mkdir -p src/github.com/hashicorp/ "$GOPATH/bin" mkdir -p src/github.com/hashicorp/ "$GOPATH/bin"
mv "${pkgname}" "src/github.com/hashicorp/${pkgname}" mv "${pkgname}" "src/github.com/hashicorp/${pkgname}"
@ -42,17 +43,21 @@ pkgver() {
git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
} }
build () { build() {
cd $PACKAGE_ROOT cd $PACKAGE_ROOT
export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}" export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}" export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
XC_OSARCH='linux/amd64' make static-dist bin export XC_OSARCH='linux/amd64'
grep "^[a-z].*plugin[:]" Makefile | cut -f1 -d: | while IFS= read -r plugin; do
make "$plugin"
done
make static-dist bin
} }
package () { package() {
cd ${PACKAGE_ROOT} cd ${PACKAGE_ROOT}
install -Dm755 bin/vault "${pkgdir}/usr/bin/vault" install -Dm755 bin/vault "${pkgdir}/usr/bin/vault"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"