Browse Source

git source added to PKGBUILD

master
viktor 4 months ago
parent
commit
c90e1b5379
2 changed files with 47 additions and 2 deletions
  1. +43
    -0
      PKGBUILD
  2. +4
    -2
      README.md

+ 43
- 0
PKGBUILD View File

@@ -0,0 +1,43 @@
# Maintainer: Viktor <viktor@vikk.io>
pkgname=deconz-monitor
arch=('any')
pkgver=1.0.0
pkgrel=1
pkgdesc="deCONZ wrapper scripts"
url="https://vikk.io/git"
license=('MIT')
groups=()
depends=('deconz' 'jq')
makedepends=()
optdepends=('R: produce plots' 'ttf-ms-fonts: produce plots successfully')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
source=("git+https://vikk.io/git/viktor/deconz-monitor.git")
sha256sums=('SKIP')

package() {
install -Dm0644 "${srcdir}"/deconz-monitor/config/deconz-monitor.conf "$pkgdir"/etc/deconz-monitor.conf.default

install -Dm0755 "${srcdir}"/deconz-monitor/scripts/monitor.sh "$pkgdir"/usr/lib/deconz-monitor/monitor.sh
install -Dm0755 "${srcdir}"/deconz-monitor/scripts/rest-api.sh "$pkgdir"/usr/lib/deconz-monitor/rest-api.sh
install -Dm0755 "${srcdir}"/deconz-monitor/scripts/sensors.sh "$pkgdir"/usr/lib/deconz-monitor/sensors.sh
install -Dm0755 "${srcdir}"/deconz-monitor/scripts/session.sh "$pkgdir"/usr/lib/deconz-monitor/session.sh
install -Dm0755 "${srcdir}"/deconz-monitor/scripts/zigbee.sh "$pkgdir"/usr/lib/deconz-monitor/zigbee.sh

install -dm755 "$pkgdir"/usr/bin
ln -s /usr/lib/deconz-monitor/monitor.sh "$pkgdir"/usr/bin/deconz-monitor
ln -s /usr/lib/deconz-monitor/rest-api.sh "$pkgdir"/usr/bin/deconz-rest-api
ln -s /usr/lib/deconz-monitor/sensors.sh "$pkgdir"/usr/bin/deconz-sensors
ln -s /usr/lib/deconz-monitor/session.sh "$pkgdir"/usr/bin/deconz-session
ln -s /usr/lib/deconz-monitor/zigbee.sh "$pkgdir"/usr/bin/deconz-zigbee

install -dm755 "$pkgdir"/var/lib/deconz-monitor

install -Dm0644 "${srcdir}"/deconz-monitor/service/deconz-monitor.service "${pkgdir}"/usr/lib/systemd/system/deconz-monitor.service
}

+ 4
- 2
README.md View File

@@ -1,3 +1,5 @@
# arch-deconz-logger
# arch-deconz-monitor

Arch Linux service and installation scripts for deconz-logger
Arch Linux installation for [deconz-monitor](https://vikk.io/git/viktor/deconz-monitor).

This repository is prepared for future upload to [AUR](https://aur.archlinux.org) when deconz-monitor matures.

Loading…
Cancel
Save