27 lines
691 B
Bash
27 lines
691 B
Bash
# Maintainer: Alex Janka <alex@alexjanka.com>
|
|
|
|
pkgname=homekit-logger
|
|
pkgver=0.6.1
|
|
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"
|
|
}
|