envrun v0.6.0

This commit is contained in:
Knut Ahlers 2018-11-30 20:31:34 +01:00
commit e86ad295ed
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 37 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -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

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Knut Ahlers <knut at ahlers dot me>
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}"
}