From aa0d52bc4b92e5acd3bf8bd5a44ae4e5027003f1 Mon Sep 17 00:00:00 2001 From: Tim <6829542+tim-devel@users.noreply.github.com> Date: Sun, 30 Jan 2022 21:31:40 +0000 Subject: [PATCH] add Alpine Linux build file (#505) --- contrib/alpine/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 contrib/alpine/APKBUILD diff --git a/contrib/alpine/APKBUILD b/contrib/alpine/APKBUILD new file mode 100644 index 00000000..1b6965ed --- /dev/null +++ b/contrib/alpine/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Tim +# Maintainer: Tim +pkgname=ebusd +pkgver=21.3 +pkgrel=1 +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" +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=" +e742abe5cfa68f140a0db59fa4ea73cc0c099a5f8a663bc76f8c1932852adb5e5385c153186b7c43bac0feb529d745fcd3047bb8465fae158fef0bb9072d9fc9 ebusd-21.3.tar.gz +"