homekit-logger/homekit-exporter/packaging/PKGBUILD

27 lines
691 B
Bash
Raw Normal View History

2024-02-25 11:44:17 +11:00
# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=homekit-logger
pkgver=0.5.2
2024-02-25 11:44:17 +11:00
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"
2024-02-25 12:29:00 +11:00
install -D -m 0644 homekit-exporter/packaging/service/service "${pkgdir}/usr/lib/systemd/system/homekit-exporter.service"
2024-02-25 11:44:17 +11:00
}