blob: d0942ea436fd0ca456a64916b6141046dc95fc93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=envconsul
pkgver=0.7.2
pkgrel=0
pkgdesc="Read and set environmental variables for processes from Consul."
url="https://www.consul.io/"
arch="all"
license="MPL-2.0"
depends=""
makedepends="go"
options="!strip"
source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
mkdir -p "$builddir/src/github.com/hashicorp"
ln -s "$builddir" "$builddir/src/github.com/hashicorp/$pkgname"
cd "$builddir/src/github.com/hashicorp/$pkgname" || return 1
GOPATH="$builddir" go build -v -o bin/$pkgname
}
package() {
cd "$builddir"
# Main binary
install -m755 -D bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="b6dbeb330ff17e1709b272037fc6a202de7c8451572a45e9be7fdf7e7e47d7557b79fe3330f51ce56b8bf46d3bf1dbbc53d94895858c70d4a430b71bd030c0dc envconsul-0.7.2.tar.gz"
|