Files
home-lab_watchdog_keepalive/PKGBUILD
zacharias 25c0dd16ca added service and timer files, aswell as Arch PKGBUILD
updated version in main.cpp to be a dependency from cmake
2025-06-20 13:14:00 +02:00

24 lines
646 B
Bash

# PKGBUILD
pkgname=arduino_watchdog
pkgrel=1
pkgdesc="Arduino based external watchdog to keep server online"
arch=('any')
license=('MIT')
makedepends=('cmake: build system used')
depends=('systemd>=257.6')
source=('git://git.server.4zellen.se/Zacharias/home-lab_watchdog_keepalive.git')
maintainer="Zacharias Zellén <zacharias@4zellen.se>"
url="https://git.server.4zellen.se/Zacharias/home-lab_watchdog_keepalive.git"
build() {
cd "$srcdir/home-lab_watchdog_keepalive"
cmake -B build -S . -DVERSION="\"$pkgver\""
make -C build
}
pkgver() {
cd "$srcdir/home-lab_watchdog_keepalive"
git describe --tags | sed 's/^v//;s/-/+/g'
}