From 96e15ec90e6a09e203601f8c4875a0ae267838ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chavant?= Date: Mon, 28 May 2018 15:33:09 +0200 Subject: testing/confd: upgrade to 0.16.0 and modernize --- testing/confd/APKBUILD | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'testing') diff --git a/testing/confd/APKBUILD b/testing/confd/APKBUILD index 04bd95c438..ea65f82f13 100644 --- a/testing/confd/APKBUILD +++ b/testing/confd/APKBUILD @@ -1,37 +1,35 @@ # Contributor: tang0th +# Contributor: fchavant # Maintainer: pkgname=confd -pkgver=0.12.0_alpha3 -_ver=${pkgver/_/-} +pkgver=0.16.0 pkgrel=0 pkgdesc="Manage local application configuration files using templates and data from etcd or consul" url="http://confd.io" arch="all" -license="BSD" +license="MIT" depends="" -depends_dev="" -makedepends="$depends_dev go" +makedepends="go" install="" subpackages="" -source="$pkgname-$_ver.tar.gz::https://github.com/kelseyhightower/$pkgname/archive/v$_ver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/kelseyhightower/$pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$pkgname-$_ver" build() { - cd "$srcdir" - export GOPATH="$PWD" - export GO15VENDOREXPERIMENT=1 - - mkdir -p src/github.com/kelseyhightower/ - cp -r "$builddir" src/github.com/kelseyhightower/confd + export GOPATH="$srcdir" + mkdir -p "$GOPATH/src/github.com/kelseyhightower" + mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/github.com/kelseyhightower/confd" + cd "$GOPATH/src/github.com/kelseyhightower/confd" + make +} - go install -v github.com/kelseyhightower/confd +check() { + export GOPATH="$srcdir" + cd "$GOPATH/src/github.com/kelseyhightower/confd" + make test } package() { - cd "$srcdir" - install -Dm755 bin/confd "$pkgdir"/usr/bin/confd || return 1 + install -Dm755 "$srcdir/src/github.com/kelseyhightower/confd/bin/confd" "$pkgdir/usr/bin/confd" } -md5sums="1420665b612d994442e3914ab2c8f4a7 confd-0.12.0-alpha3.tar.gz" -sha256sums="b679b35afb593bd9472cbf35c778829288c85c7b92678747d3a059ea0d74c16c confd-0.12.0-alpha3.tar.gz" -sha512sums="4feb81952a5cd2fcb8250cf5df93b6ceeb9a2e5173f45f7c5cbdcd2de59acf7d85a60c1513520c601e7b7a1257d26c912877eaac53aafe9e4e278e4e9cc6ab15 confd-0.12.0-alpha3.tar.gz" +sha512sums="eafabf85d1d7193847a78dcfde7b9961bdf5b634165d27acc760aff6e4ef79cac9688abdfcac049773a28f997f87ea94e6a7606ee7f7d7aaaeaa8ba67f7e48b7 confd-0.16.0.tar.gz" -- cgit v1.2.3