# Contributor: Gennady Feldman <gena01@gmail.com> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> setvar pkgname = 'consul-replicate' setvar pkgver = '0.3.1' setvar pkgrel = '0' setvar pkgdesc = ""Consul cross-DC KV replication daemon"" setvar url = ""https://www.consul.io/"" setvar arch = ""all"" setvar license = ""MPL-2.0"" setvar depends = """" setvar makedepends = ""go"" setvar options = ""!strip"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz"" setvar builddir = ""$srcdir/$pkgname-$pkgver"" proc 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 } proc package { cd $builddir # Main binary install -m750 -D bin/$pkgname "$pkgdir"/usr/bin/$pkgname } setvar sha512sums = ""4fa1ab24d7e54b4055ddf7af71743ce93bcbf1ec7efe7777c6e8bf041f75f0d9c89d1d1d11a7db1702cdf4aedb463913e0c7c6c08810f34960b022717f246b23 consul-replicate-0.3.1.tar.gz""