~mterry/ubuntu-calculator-app/confined

301.1.1 by Daniel Holbach
add initial snapcraft.yaml attempt - this can still be simplified somewhat
1
name: ubuntu-calculator-app
2
version: 2.1+snap3
3
summary: Ubuntu Calculator app
4
description: The calculator app for all Ubuntu devices.
5
confinement: strict
6
7
8
apps:
9
  ubuntu-calculator-app:
10
    command: desktop-launch $SNAP/usr/lib/*/qt5/bin/qmlscene $SNAP/usr/share/ubuntu-calculator-app/ubuntu-calculator-app.qml
11
    plugs: [unity7, opengl]
12
13
parts:
14
  calculator:
15
    plugin: cmake
16
    configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
17
    source: .
18
    build-packages:
19
      - cmake
20
      - gettext
21
      - intltool
22
      - python3
23
      - qtbase5-dev
24
      - qtdeclarative5-dev
25
    stage-packages:
26
      - ubuntu-sdk-libs
27
      - qtubuntu-desktop
28
    snap:
29
      - -usr/share/doc
30
      - -usr/include
31
    after: [desktop/qt5]