~dricottone/huttese-apk

ref: df06e403219741e2ed4ee6e1fe6415e1dde32f08 huttese-apk/sr.ht/prom-aggregation-gateway/APKBUILD -rw-r--r-- 1.6 KiB
df06e403 — Drew DeVault sr.ht-nginx: update package 2 years ago
                                                                                
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
41
42
43
44
45
46
47
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=prom-aggregation-gateway
_commit=c4415bbe1411d77eb4132f3df51c87cf7fcca840
pkgver=0_git20210208
pkgrel=0
pkgdesc="An aggregating push gateway for Prometheus"
url="https://github.com/weaveworks/prom-aggregation-gateway"
arch="all"
license="LGPL-3.0-only"
install="prom-aggregation-gateway.pre-install"
makedepends="go"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/weaveworks/prom-aggregation-gateway/archive/$_commit.tar.gz
	prom-aggregation-gateway.confd
	prom-aggregation-gateway.initd
"
subpackages="$pkgname-openrc"
builddir="$srcdir/$pkgname-$_commit"

build() {
	go mod init github.com/weaveworks/prom-aggregation-gateway
	go mod vendor
	go build \
		-trimpath \
		-mod=vendor \
		-ldflags "-extldflags $LDFLAGS" \
		./cmd/prom-aggregation-gateway
}

check() {
	go test ./...
}

package() {
	install -Dm755 prom-aggregation-gateway "$pkgdir"/usr/bin/prom-aggregation-gateway

	install -Dm644 "$srcdir"/prom-aggregation-gateway.confd \
		"$pkgdir"/etc/conf.d/prom-aggregation-gateway
	install -Dm755 "$srcdir"/prom-aggregation-gateway.initd \
		"$pkgdir"/etc/init.d/prom-aggregation-gateway
}

sha512sums="
50c916a7378c537fe9eb9b70ca8aac64ca5b929323859ab075232ca2c6ef033192bfb5d056fc128c51d9e7959ecc4a3f0f3788265cad610a4d8ddf36e8e42583  prom-aggregation-gateway-0_git20210208.tar.gz
51986d7caf241a52e81b2a43bb136fbe7110667ba8b75047feaeb3b0e02f82ee3be0e7b91bd795bd49d77bba5a7ac36aeec5a0f35b29c368e83527e77a94fe3c  prom-aggregation-gateway.confd
5fcfad70369189b5628fe80f08ab3e9cea029fc291b18606769ad14818330ea8157d9a7d68893a73b891118ea7dcea7c9980698c7a578f5f1ca1637e3699ac7d  prom-aggregation-gateway.initd
"