Commit 73b539f1 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/etcd: enable on various arches, strip elf symbols and debug

provide virtual etcd-api with provides_priority=1 so it is the preferred
etcd-api package
parent 68dca958
......@@ -2,14 +2,16 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=etcd
pkgver=3.4.13
pkgrel=0
pkgrel=1
pkgdesc="A highly-available key value store for shared configuration and service discovery"
options="chmod-clean"
url="https://github.com/coreos/etcd"
arch="x86_64 ppc64le"
url="https://github.com/etcd-io/etcd"
arch="all !mips64"
license="Apache-2.0"
makedepends="go bash"
install="$pkgname.pre-install"
provides="etcd-api"
provider_priority=1
pkgusers="etcd"
pkggroups="etcd"
subpackages="$pkgname-doc $pkgname-ctl $pkgname-openrc"
......@@ -25,13 +27,13 @@ prepare() {
default_prepare
export GOPATH="$(pwd)/_gopath"
export GOFLAGS="$GOFLAGS -mod=mod"
_coreos="$GOPATH/src/github.com/coreos"
_coreos="$GOPATH/src/github.com/etcd-io"
mkdir -vp $_coreos
ln -vsf $srcdir/$pkgname-$pkgver $_coreos/$pkgname
}
build() {
bash -x ./build
GO_LDFLAGS="-w -s" bash -x ./build
}
package() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment