# Contributor: Joonas Kuorilehto # Maintainer: Joonas Kuorilehto pkgname=ruuvi-prometheus pkgver=0.1.4 pkgrel=4 pkgdesc="Ruuvi sensor Prometheus exporter" url="https://github.com/joneskoo/ruuvi-prometheus" license="BSD-2-Clause" arch="all !riscv64" # prometheus cpuinfo doesnt support riscv64 options="!check" # no test suite depends="bluez" makedepends="go" subpackages="$pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/joneskoo/ruuvi-prometheus/archive/v$pkgver.tar.gz ruuvi-prometheus.initd " export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -ldflags="-X main.version=$pkgver" } package() { install -Dm755 ./ruuvi-prometheus "$pkgdir"/usr/bin/ruuvi-prometheus install -Dm755 "$srcdir"/ruuvi-prometheus.initd "$pkgdir"/etc/init.d/ruuvi-prometheus } sha512sums=" 44b552ba92d323c23636368d29cd8e7657790336b07fe9d82768ff2a897c8959cb47ec0f68d9bdd367726f8bc1d29a7d0db359f5168d0a97c03ebba3d0566c0e ruuvi-prometheus-0.1.4.tar.gz 6eb05b76ea6289799f37a0e0d42e663d6bd013b46468126cb2ac3c90bfd3421db7044895d49e059e32e9d3f5e870343b494ab455f2164727b111b647af107d61 ruuvi-prometheus.initd "