diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-01-12 07:55:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-01-12 07:55:59 +0000 |
commit | 0778d46ddedada53268e05491eaf4144ebab97ef (patch) | |
tree | d4ba7accbd2c98f5876260de5bdb24a5dc83cdbf /testing/etcd | |
parent | f7fc7fd109145de79a4568d1b3f615ba4013b72a (diff) | |
download | aports-0778d46ddedada53268e05491eaf4144ebab97ef.tar.bz2 aports-0778d46ddedada53268e05491eaf4144ebab97ef.tar.xz |
testing/etcd: fixed build. Fixes #6669
Diffstat (limited to 'testing/etcd')
-rw-r--r-- | testing/etcd/APKBUILD | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/testing/etcd/APKBUILD b/testing/etcd/APKBUILD index cd9abb8884..271a95e57a 100644 --- a/testing/etcd/APKBUILD +++ b/testing/etcd/APKBUILD @@ -7,22 +7,28 @@ pkgdesc="A highly-available key value store for shared configuration and service url="https://github.com/coreos/etcd" arch="x86_64" license="ASL 2.0" -depends="" -depends_dev="" -makedepends="$depends_dev go" +makedepends="go bash" options="!strip" install="$pkgname.pre-install" -subpackages="" pkgusers="$pkgname" pkggroups="$pkgname" +subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/etcd/archive/v$pkgver.tar.gz $pkgname.confd $pkgname.initd" - builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + default_prepare + export GOPATH="$(pwd)/_gopath" + _coreos="${GOPATH}/src/github.com/coreos" + mkdir -vp ${_coreos} + ln -vsf ${srcdir}/${pkgname}-${pkgver} ${_coreos}/${pkgname} +} + build() { cd "$builddir" - ./build || return 1 + bash -x ./build } package() { |