27 lines
674 B
Text
27 lines
674 B
Text
|
# Maintainer: Alex Janka <alex@alexjanka.com>
|
||
|
|
||
|
pkgname=homekit-logger
|
||
|
pkgver=0.1.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 packaging/service/service "${pkgdir}/usr/lib/systemd/system/homekit-exporter.service"
|
||
|
}
|