mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
31 lines
830 B
Text
31 lines
830 B
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=mqtt2prometheus
|
|
pkgver=0.1.7
|
|
pkgrel=1
|
|
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="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -o mqtt2prometheus ./cmd
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 mqtt2prometheus -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
729c1e6dd1a6d3cc8fefb6ae371e26d0fd6d30fbb8eac03033780de2fc90aaaddfce2fd6ac6e5c5fdcd828c40794bda519f603ad7e9210d8dbf28108e45a994f mqtt2prometheus-0.1.7.tar.gz
|
|
"
|