~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
317.1.1 by Renato Araujo Oliveira Filho
Changed confinement to devmode to work with unity8.
2
version: 2.3.1
301.1.1 by Daniel Holbach
add initial snapcraft.yaml attempt - this can still be simplified somewhat
3
summary: Ubuntu Calculator app
4
description: The calculator app for all Ubuntu devices.
317.1.1 by Renato Araujo Oliveira Filho
Changed confinement to devmode to work with unity8.
5
confinement: devmode
311.1.1 by Renato Araujo Oliveira Filho
Using content share to reduce app size when snapped.
6
grade: stable
312.1.1 by Renato Araujo Oliveira Filho
Specify 'architectures: [all]' on snapcraft file. To avoid problems with store.
7
architectures: [all]
301.1.1 by Daniel Holbach
add initial snapcraft.yaml attempt - this can still be simplified somewhat
8
9
apps:
311.1.1 by Renato Araujo Oliveira Filho
Using content share to reduce app size when snapped.
10
    ubuntu-calculator-app:
11
        command: desktop-launch qmlscene --desktop_file_hint=unity8 $SNAP/usr/share/ubuntu-calculator-app/ubuntu-calculator-app.qml
317.1.1 by Renato Araujo Oliveira Filho
Changed confinement to devmode to work with unity8.
12
        plugs: [opengl, platform, unity7, unity8]
311.1.1 by Renato Araujo Oliveira Filho
Using content share to reduce app size when snapped.
13
14
plugs:
15
    platform:
16
        interface: content
17
        content: ubuntu-app-platform1
18
        target: ubuntu-app-platform
301.1.1 by Daniel Holbach
add initial snapcraft.yaml attempt - this can still be simplified somewhat
19
20
parts:
311.1.1 by Renato Araujo Oliveira Filho
Using content share to reduce app size when snapped.
21
    ubuntu-calculator-app:
22
        plugin: cmake
23
        configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
24
        source: .
25
        build-packages:
26
            - cmake
27
            - gettext
28
            - intltool
29
            - python3
30
            - qtbase5-dev
31
            - qtdeclarative5-dev
32
        snap:
33
          - -usr/share/doc
34
          - -usr/include
35
        after: [desktop-ubuntu-app-platform]
36
37
    environment:
38
        source: snap/
39
        plugin: dump