35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Contributor: Tim <timstanleydev@gmail.com>
|
|
# Maintainer: Tim <timstanleydev@gmail.com>
|
|
pkgname=ebusd
|
|
pkgver=22.2
|
|
pkgrel=0
|
|
pkgdesc="Daemon for communication with eBUS heating systems"
|
|
url="https://github.com/john30/ebusd"
|
|
# Upstream only supports these archs.
|
|
arch="x86 x86_64 aarch64 armhf armv7"
|
|
license="GPL-3.0-only"
|
|
makedepends="argp-standalone cmake mosquitto-dev openssl-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/john30/ebusd/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DBUILD_TESTING=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --output-on-failure --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -D -m 644 "$srcdir"/"$pkgname-$pkgver"/contrib/etc/ebusd/mqtt-hassio.cfg "$pkgdir"/etc/ebusd/mqtt-hassio.cfg
|
|
install -D -m 644 "$srcdir"/"$pkgname-$pkgver"/contrib/etc/ebusd/mqtt-integration.cfg "$pkgdir"/etc/ebusd/mqtt-integration.cfg
|
|
}
|
|
|
|
sha512sums="
|
|
e98471b56d1a875f1fdc966a1f91776d8675d244836c7c8e2987fef9dce48d76b55b612fe51dfeab4a134763f20ca9ec6e1ef5f814690f63505c8c56570432cb ebusd-22.2.tar.gz
|
|
"
|