kind: manual
description: The GENIVI browser proof-of-concept for the GENIVI Demo Platform.
depends:
- genivi/genivi-demo-platform-libs.bst
- qt5-tools.bst
- qt5-tools-qtmultimedia.bst
- qt5-tools-qtwebkit.bst
- genivi/genivi.bst
- wayland-generic.bst
- genivi/weston-genivi.bst
sources:
- kind: git
  url: upstream:genivi/browser-poc
  track: baserock/genivi/genivi-demo-platform
  ref: d90501f8bd3edcd35eae72efbfb4583ba8f3cdfc
  submodules:
    documentation/designdocument/cls:
      url: http://github.com/Pelagicore/Pelagicore-LaTeX-Class.git
config:
  configure-commands:
  - qmake -d -r browser-poc.pro
  build-commands:
  - make all
  install-commands:
  - make INSTALL_ROOT="%{install-root}" install
  - mkdir -p "%{install-root}/usr/lib/systemd/user"
  - |
    cat >"%{install-root}/usr/lib/systemd/user/browser.service" <<EOF
    [Unit]
    Description=Genivi Browser PoC service
    Requires=dbus.service

    [Service]
    ExecStart=/usr/lib/browser-poc/browser/browser
    EOF
  - |
    cat >"%{install-root}/usr/lib/systemd/user/demoui.service" <<EOF
    [Unit]
    Description=Genivi Browser PoC demoui
    Requires=browser.service

    [Service]
    Environment=LD_PRELOAD=/usr/lib/libEGL.so
    ExecStart=/usr/lib/browser-poc/demoui/demoui
    EOF
