diff options
Diffstat (limited to 'testing/mqtt2prometheus/APKBUILD')
-rw-r--r-- | testing/mqtt2prometheus/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/mqtt2prometheus/APKBUILD b/testing/mqtt2prometheus/APKBUILD new file mode 100644 index 00000000000..a419fba3f6c --- /dev/null +++ b/testing/mqtt2prometheus/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Patrycja Rosa <alpine@ptrcnull.me> +# Maintainer: Patrycja Rosa <alpine@ptrcnull.me> +pkgname=mqtt2prometheus +pkgver=0.1.7 +pkgrel=8 +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 +" |