~renatofilho/address-book-app/no-network

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: address-book-app
version: 0.1
summary: Address Book app
description: Address Book app
confinement: strict  # use "strict" to enforce system access only via declared interfaces
grade: devel

apps:
    address-book-app:
        command: desktop-launch $SNAP/usr/bin/address-book-app --desktop_file_hint=unity8 "$@"
        plugs: [gsettings, unity7, opengl, platform, unity8-contacts] # FIXME: add  'address-book' interface after it get merged on snapd

plugs:
    platform:
        interface: content
        content: ubuntu-app-platform1
        target: ubuntu-app-platform
        default-provider: ubuntu-app-platform

parts:
    address-book-app:
        plugin: cmake
        configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
        source: . 
        build-packages:
            - cmake
            - intltool
            - qt5-default
            - qtbase5-dev
            - qtdeclarative5-dev
            - qtpim5-dev
            - libqofono-dev

        stage-packages:
            # FIXME: bug #1643660
            - qtdeclarative5-buteo-syncfw0.1
            - qtdeclarative5-gsettings1.0
            - qtdeclarative5-ofono0.2
            - qtdeclarative5-ubuntu-history0.1
            - qtdeclarative5-ubuntu-keyboard-extensions0.1
            - qtdeclarative5-ubuntu-telephony-phonenumber0.1
            # FIXME: bug #1643659
            - qtdeclarative5-qtcontacts-plugin

        snap:
            #Buteo
            - usr/share/doc/qtdeclarative5-buteo-syncfw0.1/copyright
            - usr/lib/*/qt5/qml/Buteo/libbuteo-syncfw-qml.so
            - usr/lib/*/qt5/qml/Buteo/qmldir

            #Gsettings
            - usr/share/doc/qtdeclarative5-gsettings1.0/copyright
            - usr/lib/*/qt5/qml/GSettings.1.0/plugins.qmltypes
            - usr/lib/*/qt5/qml/GSettings.1.0/libGSettingsQmlPlugin.so
            - usr/lib/*/qt5/qml/GSettings.1.0/qmldir
            - usr/lib/*/libgsettings-qt.so.*

            #Ofono
            - usr/share/doc/qtdeclarative5-ofono0.2/copyright
            - usr/lib/*/qt5/qml/MeeGo/QOfono/qmldir
            - usr/lib/*/qt5/qml/MeeGo/QOfono/libQOfonoQtDeclarative.so
            - usr/lib/*/libqofono-qt5.so.*

            #History
            - usr/share/doc/qtdeclarative5-ubuntu-history0.1/copyright
            - usr/lib/*/qt5/qml/Ubuntu/History/libhistory-qml.so
            - usr/lib/*/qt5/qml/Ubuntu/History/qmldir
            - usr/lib/*/libhistoryservice.so.*
            - usr/lib/*/libtelepathy-qt5.so.*

            #Keyboard
            - usr/share/doc/qtdeclarative5-ubuntu-keyboard-extensions0.1/copyright
            - usr/lib/*/qt5/qml/Ubuntu/Keyboard/libubuntu-keyboard-qml.so
            - usr/lib/*/qt5/qml/Ubuntu/Keyboard/qmldir  

            #PhoneNumber
            - usr/share/doc/qtdeclarative5-ubuntu-telephony-phonenumber0.1/copyright
            - usr/lib/*/qt5/qml/Ubuntu/Telephony/PhoneNumber/PhoneNumberField.qml
            - usr/lib/*/qt5/qml/Ubuntu/Telephony/PhoneNumber/libtelephonyservice-phonenumber-qml.so
            - usr/lib/*/qt5/qml/Ubuntu/Telephony/PhoneNumber/PhoneNumber.js
            - usr/lib/*/qt5/qml/Ubuntu/Telephony/PhoneNumber/PhoneNumberInput.qml
            - usr/lib/*/qt5/qml/Ubuntu/Telephony/PhoneNumber/qmldir
            - usr/lib/*/libphonenumber.so.7*

            #Address-book-app
            - usr/lib/*/qt5/qml/Ubuntu/AddressBook/Base
            - usr/lib/*/qt5/qml/Ubuntu/AddressBook/ContactView
            - usr/lib/*/qt5/qml/Ubuntu/AddressBook/ContactEditor
            - usr/lib/*/qt5/qml/Ubuntu/AddressBook/ContactShare
            - usr/lib/*/qt5/qml/Ubuntu/Contacts*
            - usr/bin/address-book-app
            - usr/share/address-book-app/artwork
            - usr/share/address-book-app/imports
            - usr/share/applications/address-book-app.desktop
            - usr/share/url-dispatcher/urls/
            - usr/share/content-hub/peers/address-book-app
            - usr/share/locale/*/LC_MESSAGES/address-book-app.mo

            #QtContacts
            - usr/lib/*/qt5/qml/QtContacts/libdeclarative_contacts.so
            - usr/lib/*/qt5/qml/QtContacts/plugins.qmltypes
            - usr/lib/*/qt5/qml/QtContacts/qmldir


        after: 
            - desktop-ubuntu-app-platform

    environment:
        plugin: dump
        source: snap