# Maintainer: Alex Janka pkgname=homekit-logger pkgver=0.3.0 pkgrel=1 pkgdesc="Prometheus exporter for HomeKit sensors" arch=('x86_64' 'aarch64') url="https://git.alexjanka.com/alex/homekit-logger" license=('custom') depends=('gcc-libs') makedepends=('cargo') source=("homekit-logger::git+https://git.alexjanka.com/alex/homekit-logger") sha512sums=('SKIP') build() { cd "homekit-logger" cargo build --release --locked } package() { cd "homekit-logger" install -Dm755 "target/release/homekit-exporter" "$pkgdir/usr/bin/homekit-exporter" install -D -m 0644 homekit-exporter/packaging/service/service "${pkgdir}/usr/lib/systemd/system/homekit-exporter.service" }