# Maintainer: Knut Ahlers pkgname=vault2env pkgver=2.0.0 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") sha512sums=('49d85e30035c982d9a4b537675c93c1000227f45c3d945b927107b4fc4e238de086c7a6fb033eec6b2a459c088b4572c6b90621edc0c147e39ef743e96927541') build() { cd "${srcdir}/${pkgname}-${pkgver}" GO111MODULE=on GOPATH="${srcdir}/go" go install \ -a -v \ -ldflags="-X main.version=${pkgver}" \ -mod=readonly } package() { install -Dm755 "${srcdir}/go/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" }