From e86ad295ed0cff2fc79e1a1f3375577c6b718752 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 30 Nov 2018 20:31:34 +0100 Subject: [PATCH] envrun v0.6.0 --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..2d6c917 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = envrun + pkgdesc = Small utility to transfer fields of a key in Vault into the environment + pkgver = 0.6.0 + pkgrel = 1 + url = https://github.com/Luzifer/envrun + arch = i686 + arch = x86_64 + license = Apache + makedepends = go + source = envrun-0.6.0.tar.gz::https://github.com/Luzifer/envrun/archive/v0.6.0.tar.gz + sha512sums = a2b854abba9cb7e8078d0c8f662d93ba32e87fbac73becbb1de0c0ffd27603a184ccd9b7b6a93a12b55b32967a0a2884bf1739f97cb797e1a372ae9c4d7bc85b + +pkgname = envrun + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9dbb4f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Knut Ahlers + +pkgname=envrun +pkgver=0.6.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=('a2b854abba9cb7e8078d0c8f662d93ba32e87fbac73becbb1de0c0ffd27603a184ccd9b7b6a93a12b55b32967a0a2884bf1739f97cb797e1a372ae9c4d7bc85b') + +build() { + mkdir -p "${srcdir}/go/src/github.com/Luzifer" + ln -sf "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/go/src/github.com/Luzifer/${pkgname}" + GOPATH="${srcdir}/go" go install -a -v -ldflags="-X main.version=${pkgver}" "github.com/Luzifer/${pkgname}" +} + +package() { + install -Dm755 "${srcdir}/go/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +}