Sören Tempel 468990bcc2 enable stripping of go binaries
Stripping go binaries used to be an issue but nowadays it should work as
expected.

> We don't intentionally do anything that would make stripping a binary
> not OK, and strip has worked for the past five years or so.

https://groups.google.com/forum/?_escaped_fragment_=topic/golang-dev/ABppMOjYP6w#!topic/golang-dev/ABppMOjYP6w
2018-09-24 11:49:25 +02:00

33 lines
942 B
Plaintext

# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=consul-replicate
pkgver=0.4.0
pkgrel=1
pkgdesc="Consul cross-DC KV replication daemon"
url="https://www.consul.io/"
arch="all"
license="MPL-2.0"
depends=""
makedepends="go"
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"
GOPATH="$builddir" go build -v -o bin/$pkgname
}
package() {
cd "$builddir"
# Main binary
install -m750 -D bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="960f8a54890932663d832247e2f9eec536a6e4f21e3e1f602399e9465cbb355eb2e4dcbc198bd2362442088c1912664b0640b59ce099c988508f4715b73fbcd7 consul-replicate-0.4.0.tar.gz"