33 lines
900 B
Bash
33 lines
900 B
Bash
# Contributor: Tim <timstanleydev@gmail.com>
|
|
# Maintainer: Tim <timstanleydev@gmail.com>
|
|
pkgname=ebusd
|
|
pkgver=22.4
|
|
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
|
|
}
|
|
|
|
sha512sums="
|
|
f625a8813eb5f844d1148eb9d683b9b730573e8c2bc1e3e2fec6462b3943340cfa1cfaf4cd50ff48b45aac47841189ad5d699316907b6abb6e7d1c20a0352842 ebusd-22.4.tar.gz
|
|
"
|