vault2env/PKGBUILD

28 lines
913 B
Text
Raw Normal View History

2018-11-28 19:42:21 +00:00
# Maintainer: Knut Ahlers <knut at ahlers dot me>
pkgname=vault2env
2024-12-12 11:38:15 +00:00
pkgver=2.3.2
2018-11-28 19:42:21 +00:00
pkgrel=1
pkgdesc="Small utility to transfer fields of a key in Vault into the environment"
arch=('i686' 'x86_64')
url="https://github.com/Luzifer/$pkgname"
license=('Apache')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
2024-12-12 11:38:15 +00:00
sha512sums=('e429e95b77f6d886b4eceea3a89ccc094bd3460f4c9d2f926e598b77beddb3dba90d6327806ee686220cacca74bf645c0b37e250508b7e2b79cfe54bff64ffca')
2018-11-28 19:42:21 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
GO111MODULE=on GOPATH="${srcdir}/go" go install \
-a -v \
-ldflags="-X main.version=${pkgver}" \
-mod=readonly
GO111MODULE=on GOPATH="${srcdir}/go" go clean -modcache
2018-11-28 19:42:21 +00:00
}
package() {
install -Dm755 "${srcdir}/go/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}