Arch Linux service and installation scripts for deconz-monitor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

  1. # Maintainer: Viktor <viktor@vikk.io>
  2. pkgname=deconz-monitor
  3. arch=('any')
  4. pkgver=1.0.0
  5. pkgrel=1
  6. pkgdesc="deCONZ wrapper scripts"
  7. url="https://vikk.io/git"
  8. license=('MIT')
  9. groups=()
  10. depends=('deconz' 'jq')
  11. makedepends=()
  12. optdepends=('R: produce plots' 'ttf-ms-fonts: produce plots successfully')
  13. provides=()
  14. conflicts=()
  15. replaces=()
  16. backup=()
  17. options=()
  18. install=
  19. changelog=
  20. noextract=()
  21. source=("git+https://vikk.io/git/viktor/deconz-monitor.git")
  22. sha256sums=('SKIP')
  23. package() {
  24. install -Dm0644 "${srcdir}"/deconz-monitor/config/deconz-monitor.conf "$pkgdir"/etc/deconz-monitor.conf.default
  25. install -Dm0755 "${srcdir}"/deconz-monitor/scripts/monitor.sh "$pkgdir"/usr/lib/deconz-monitor/monitor.sh
  26. install -Dm0755 "${srcdir}"/deconz-monitor/scripts/rest-api.sh "$pkgdir"/usr/lib/deconz-monitor/rest-api.sh
  27. install -Dm0755 "${srcdir}"/deconz-monitor/scripts/sensors.sh "$pkgdir"/usr/lib/deconz-monitor/sensors.sh
  28. install -Dm0755 "${srcdir}"/deconz-monitor/scripts/session.sh "$pkgdir"/usr/lib/deconz-monitor/session.sh
  29. install -Dm0755 "${srcdir}"/deconz-monitor/scripts/zigbee.sh "$pkgdir"/usr/lib/deconz-monitor/zigbee.sh
  30. install -dm755 "$pkgdir"/usr/bin
  31. ln -s /usr/lib/deconz-monitor/monitor.sh "$pkgdir"/usr/bin/deconz-monitor
  32. ln -s /usr/lib/deconz-monitor/rest-api.sh "$pkgdir"/usr/bin/deconz-rest-api
  33. ln -s /usr/lib/deconz-monitor/sensors.sh "$pkgdir"/usr/bin/deconz-sensors
  34. ln -s /usr/lib/deconz-monitor/session.sh "$pkgdir"/usr/bin/deconz-session
  35. ln -s /usr/lib/deconz-monitor/zigbee.sh "$pkgdir"/usr/bin/deconz-zigbee
  36. install -dm755 "$pkgdir"/var/lib/deconz-monitor
  37. install -Dm0644 "${srcdir}"/deconz-monitor/service/deconz-monitor.service "${pkgdir}"/usr/lib/systemd/system/deconz-monitor.service
  38. }