~dricottone/huttese-apk

ref: 4800997b88a804765fe828d6bf1b2bd4ae1ec7fe huttese-apk/sr.ht/prom-aggregation-gateway/APKBUILD -rw-r--r-- 1.6 KiB
4800997b — Simon Ser gamja: upgrade to 1.0.0_beta1-r10 3 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=prom-aggregation-gateway
_commit=123c6bfc5e07fb8f118c19b3281855bcb2463c39
pkgver=0_git20210118
pkgrel=1
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="0b4b54bf97022de6dc137073d80d8a3cedcb9ce37f0b1cfa568366ca848863f0fb5f60408fefba2aee189812f4ac4e06d959d50f23903d5d9fafd60369ab9d45  prom-aggregation-gateway-0_git20210118.tar.gz
51986d7caf241a52e81b2a43bb136fbe7110667ba8b75047feaeb3b0e02f82ee3be0e7b91bd795bd49d77bba5a7ac36aeec5a0f35b29c368e83527e77a94fe3c  prom-aggregation-gateway.confd
5fcfad70369189b5628fe80f08ab3e9cea029fc291b18606769ad14818330ea8157d9a7d68893a73b891118ea7dcea7c9980698c7a578f5f1ca1637e3699ac7d  prom-aggregation-gateway.initd"