← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~renatofilho/ubuntu-calendar-app/snappy into lp:ubuntu-calendar-app

 

Renato Araujo Oliveira Filho has proposed merging lp:~renatofilho/ubuntu-calendar-app/snappy into lp:ubuntu-calendar-app.

Commit message:
Snappy package.

Requested reviews:
  Ubuntu Calendar Developers (ubuntu-calendar-dev)

For more details, see:
https://code.launchpad.net/~renatofilho/ubuntu-calendar-app/snappy/+merge/303962
-- 
Your team Ubuntu Calendar Developers is requested to review the proposed merge of lp:~renatofilho/ubuntu-calendar-app/snappy into lp:ubuntu-calendar-app.
=== added file 'snapcraft.yaml'
--- snapcraft.yaml	1970-01-01 00:00:00 +0000
+++ snapcraft.yaml	2016-08-25 16:18:29 +0000
@@ -0,0 +1,54 @@
+name: ubuntu-calendar-app
+version: 0.1
+summary: Ubuntu calendar app
+description: Ubuntu calendar app
+confinement: strict # devmode  # use "strict" to enforce system access only via declared interfaces
+
+apps:
+    ubuntu-calendar-app:
+        command: desktop-launch $SNAP/bin/ubuntu-calendar-app
+
+plugs:
+    gsettings:
+        interface: gsettings
+    unity7:
+        interface: unity7
+    opengl:
+        interface: opengl
+    eds-calendar:
+        interface: eds
+        service: calendar
+    address-book:
+        interface: address-book
+
+parts:
+    ubuntu-calendar-app:
+        plugin: cmake
+        configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
+        source: .
+        stage-packages:
+            - qmlscene
+            - qml-module-qt-labs-settings
+            - qml-module-qtcontacts
+            - qml-module-qtorganizer
+            - qml-module-ubuntu-components
+            - qml-module-ubuntu-onlineaccounts
+            - qtdeclarative5-ubuntu-content1
+            - qtdeclarative5-ubuntu-syncmonitor0.1
+            - qtcontact5-galera
+            - qtorganizer5-eds
+            - suru-icon-theme
+        stage:
+            - -usr/share/pkgconfig/xkeyboard-config.pc
+            - -usr/share/pkgconfig/shared-mime-info.pc
+        snap:
+            - -usr/lib/python3
+            - -usr/share/doc
+            - -usr/include           
+        after: [desktop/gtk3]
+
+    environment:
+        plugin: copy
+        files:
+            ubuntu-calendar-app.wrapper: bin/ubuntu-calendar-app
+            snappy-qt5.conf: etc/xdg/qtchooser/snappy-qt5.conf

=== added file 'snappy-qt5.conf'
--- snappy-qt5.conf	1970-01-01 00:00:00 +0000
+++ snappy-qt5.conf	2016-08-25 16:18:29 +0000
@@ -0,0 +1,2 @@
+./usr/lib/x86_64-linux-gnu/qt5/bin
+./usr/lib/x86_64-linux-gnu

=== added file 'ubuntu-calendar-app.wrapper'
--- ubuntu-calendar-app.wrapper	1970-01-01 00:00:00 +0000
+++ ubuntu-calendar-app.wrapper	2016-08-25 16:18:29 +0000
@@ -0,0 +1,29 @@
+#!/bin/bash
+export ARCH="x86_64-linux-gnu"
+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH:$LD_LIBRARY_PATH
+
+# XKB config
+export XKB_CONFIG_ROOT=$SNAP/usr/share/X11/xkb
+
+# Qt Platform to Mir
+export QTCHOOSER_NO_GLOBAL_DIR=1
+export QT_SELECT=snappy-qt5
+
+# Qt Libs
+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/qt5/libs:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/pulseaudio:$LD_LIBRARY_PATH
+
+# Qt Modules
+export QT_PLUGIN_PATH=$SNAP/usr/lib/$ARCH/qt5/plugins
+export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/usr/lib/$ARCH/qt5/qml
+export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/lib/$ARCH
+
+# Necessary for the SDK to find the translations directory
+export APP_DIR=$SNAP
+
+# Mesa Libs
+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/mesa:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/mesa-egl:$LD_LIBRARY_PATH
+
+exec $SNAP/usr/lib/$ARCH/qt5/bin/qmlscene $SNAP/usr/share/calendar-app/calendar.qml
+


References