name: mesa-demos
version: "0.1"
summary: Mesa demos (for Intel GPU) for X11
description: |
  Mesa OpenGL, OpenGL|ES1, OpenGL|ES2 demos.
  Only validated with Intel GPU, so far.
  Only a few of the demos are included in the snap.
  Having lp:1583259 would help when adding other demos
  as there are many of them.
confinement: devmode

apps:
  teapot:
    command: demo.wrapper demos teapot
    plugs: [x11, opengl]
  gears:
    command: demo.wrapper demos gears
    plugs: [x11, opengl]
  tunnel2:
    command: demo.wrapper demos tunnel2
    plugs: [x11, opengl]
  es2info:
    command: demo.wrapper egl/opengles2 es2_info
    plugs: [x11, opengl]
  es2tri:
    command: demo.wrapper egl/opengles2 es2tri
    plugs: [x11, opengl]
  es2gears:
    command: demo.wrapper egl/opengles2 es2gears_x11
    plugs: [x11, opengl]

parts:
  mesa-demos:
    source: git://anongit.freedesktop.org/git/mesa/demos
    source-type: git
    plugin: cmake
    stage-packages:
      - xserver-xorg-video-intel
  wrappers:
    plugin: copy
    files:
      demo.wrapper: demo.wrapper

name: mesa-demos
version: "0.1"
grade: stable
summary: Mesa demos for X11
description: |
  Mesa OpenGL, OpenGL|ES1, OpenGL|ES2 demos.
  Only a few of the demos are included in the snap.
  Having lp:1583259 would help when adding other demos
  as there are many of them.
confinement: devmode

apps:
  teapot:
    command: demo.wrapper demos teapot
    plugs: [x11, opengl]
  gears:
    command: demo.wrapper demos gears
    plugs: [x11, opengl]
  tunnel2:
    command: demo.wrapper demos tunnel2
    plugs: [x11, opengl]
  es2info:
    command: demo.wrapper egl/opengles2 es2_info
    plugs: [x11, opengl]
  es2tri:
    command: demo.wrapper egl/opengles2 es2tri
    plugs: [x11, opengl]
  es2gears:
    command: demo.wrapper egl/opengles2 es2gears_x11
    plugs: [x11, opengl]

parts:
  mesa-demos:
    source: git://anongit.freedesktop.org/git/mesa/demos
    source-type: git
    plugin: cmake
    build-packages:
        - gcc
        - g++
    stage-packages:
      - xserver-xorg-video-intel
  wrappers:
    plugin: dump
    source: .
    organize:
      demo.wrapper: bin/demo.wrapper

Update yaml with the latest.
Update yaml with the latest.