aports/testing/mqtt2prometheus/APKBUILD
2025-03-16 14:15:03 +01:00

34 lines
1,012 B
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=mqtt2prometheus
pkgver=0.1.7
pkgrel=14
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
update-golang-sys.patch
"
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
68403c95d823e3301aad59da53c37bb47ae2a95771127565c0cb9c70bc4039ec339f6191722e617edb48a7dd5e0c3db2fb15f5a9f54788e5f085f660b0064609 update-golang-sys.patch
"