# Contributor: Joonas Kuorilehto # Maintainer: Joonas Kuorilehto pkgname=ruuvi-prometheus pkgver=0.1 pkgrel=0 pkgdesc="Ruuvi sensor Prometheus exporter" url="https://github.com/joneskoo/ruuvi-prometheus" arch="all" depends="bluez" license="BSD-2-Clause" options="!check" # No test suite makedepends="go" subpackages="$pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/joneskoo/ruuvi-prometheus/archive/v$pkgver.tar.gz ruuvi-prometheus.initd " build() { go build . } package() { install -Dm755 ./ruuvi-prometheus "$pkgdir"/usr/bin/ruuvi-prometheus install -Dm755 "$srcdir"/ruuvi-prometheus.initd "$pkgdir"/etc/init.d/ruuvi-prometheus } sha512sums="1433b13213b97c8f1f2310af6ca34b18cacff9d58f0ea090c09acaac035b736664fa954c2a563e9e633ae5eb1dca573da17a0860f10e3031058212ad6e421d68 ruuvi-prometheus-0.1.tar.gz 6eb05b76ea6289799f37a0e0d42e663d6bd013b46468126cb2ac3c90bfd3421db7044895d49e059e32e9d3f5e870343b494ab455f2164727b111b647af107d61 ruuvi-prometheus.initd"