blob: 505d3c95c1f112ee83dcbfd00c660ca936609e58 (
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
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=mqtt2prometheus
pkgver=0.1.6
pkgrel=4
pkgdesc="MQTT to Prometheus gateway"
url="https://github.com/hikhvar/mqtt2prometheus"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/hikhvar/mqtt2prometheus/archive/v$pkgver/mqtt2prometheus-$pkgver.tar.gz"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
go build -o mqtt2prometheus ./cmd
}
check() {
go test ./...
}
package() {
install -Dm755 mqtt2prometheus -t "$pkgdir"/usr/bin
}
sha512sums="
2c33cc2e7f94a673e059b4ebfc66d44c9030acb5d9d1e0d8debe7df3d8629d5d88e6c205abc257e39fc18f4c335890becc11c53863845b145079a2bca7567c7f mqtt2prometheus-0.1.6.tar.gz
"
|