aboutsummaryrefslogtreecommitdiffstats
path: root/testing/confd/APKBUILD
blob: c36c3cad1f9e6dbcdc96a64ef1a9bb68f0d1b9b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: tang0th <tang0th@gmx.com>
# Contributor: fchavant <francois@lightcurve.io>
# Maintainer:
pkgname=confd
pkgver=0.16.0
pkgrel=1
pkgdesc="Manage local application configuration files using templates and data from etcd or consul"
url="http://confd.io"
arch="all"
license="MIT"
depends=""
makedepends="go"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/kelseyhightower/$pkgname/archive/v$pkgver.tar.gz
	0001-add-file-backend-to-quick-start-guide-727.patch"

build() {
	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
}

check() {
	# Errors out with
	# backends/file/client.go:115:14: Debug call has arguments but no formatting directives
	[ "$CARCH" = armv7 ] && return 0
	export GOPATH="$srcdir"
	cd "$GOPATH/src/github.com/kelseyhightower/confd"
	make test
}

package() {
	install -Dm755 "$srcdir/src/github.com/kelseyhightower/confd/bin/confd" "$pkgdir/usr/bin/confd"
}

sha512sums="eafabf85d1d7193847a78dcfde7b9961bdf5b634165d27acc760aff6e4ef79cac9688abdfcac049773a28f997f87ea94e6a7606ee7f7d7aaaeaa8ba67f7e48b7  confd-0.16.0.tar.gz
d57124541a84d2d9bc8e3de7bb463a724e39f99345da3732e9770439e6356f8e7633e8968cf8a654c43a92c5f99ede51badb8f18981214cdd827e10d702b0239  0001-add-file-backend-to-quick-start-guide-727.patch"