mirror of
https://github.com/luzifer-aur/envrun.git
synced 2024-11-08 11:00:07 +00:00
envrun v0.6.0
This commit is contained in:
commit
e86ad295ed
2 changed files with 37 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal 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
23
PKGBUILD
Normal 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}"
|
||||
}
|
Loading…
Reference in a new issue