kind: manual
depends:
- bluetooth.bst
- erlang.bst
sources:
- kind: git
  url: upstream:rvi/rvi_core
  track: v0.5.0
  ref: 9a3db2baecdddbfba8e8bfeb71038e4de6a44225
config:
  build-commands:
  - |
    make deps
    make compile
    make escript
  install-commands:
  - |
    make DESTDIR="%{install-root}" install
    install -d "%{install-root}"/usr/lib/systemd/system
    install -m 0644 yocto_template/rvi.service "%{install-root}"/usr/lib/systemd/system
  - echo "genivi.org/node/$(cat /proc/sys/kernel/random/uuid)" > "%{install-root}"/etc/opt/rvi/device_id
  - install -m 0644 priv/config/rvi_common.config "%{install-root}"/etc/opt/rvi/rvi.config
