added Arch post install script, and some general updates
This commit is contained in:
20
PKGBUILD
20
PKGBUILD
@@ -1,14 +1,21 @@
|
||||
# PKGBUILD
|
||||
pkgver() {
|
||||
cd "$srcdir/home-lab_watchdog_keepalive"
|
||||
git describe --tags | sed 's/^v//;s/-/+/g'
|
||||
}
|
||||
pkgver=0.0.1_DEV
|
||||
pkgname=arduino_watchdog
|
||||
pkgrel=1
|
||||
pkgdesc="Arduino based external watchdog to keep server online"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
makedepends=('cmake: build system used')
|
||||
makedepends=('cmake>=4.0.0', 'git>=2.50.0')
|
||||
depends=('systemd>=257.6')
|
||||
source=('git://git.server.4zellen.se/Zacharias/home-lab_watchdog_keepalive.git')
|
||||
source=('git+https://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"
|
||||
install=arduino_watchdog.install
|
||||
sha256sums=('SKIP')
|
||||
|
||||
|
||||
build() {
|
||||
@@ -18,7 +25,10 @@ build() {
|
||||
make -C build
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/home-lab_watchdog_keepalive"
|
||||
git describe --tags | sed 's/^v//;s/-/+/g'
|
||||
package() {
|
||||
install -Dm755 "$srcdir/home-lab_watchdog_keepalive/build/home_lab_watchdog_keepalive" "$pkgdir/usr/bin/arduino_watchdog"
|
||||
|
||||
install -Dm755 "$srcdir/home-lab_watchdog_keepalive/arduino-watchdog-heartbeat.service" "$pkgdir/etc/systemd/system/arduino-watchdog-heartbeat.service"
|
||||
|
||||
install -Dm755 "$srcdir/home-lab_watchdog_keepalive/arduino-watchdog-heartbeat.timer" "$pkgdir/etc/systemd/system/arduino-watchdog-heartbeat.timer"
|
||||
}
|
||||
Reference in New Issue
Block a user