diff options
-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() { |