← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~dholbach/ubuntu-calculator-app/add-snapcraft.yaml into lp:ubuntu-calculator-app

 

Daniel Holbach has proposed merging lp:~dholbach/ubuntu-calculator-app/add-snapcraft.yaml into lp:ubuntu-calculator-app.

Requested reviews:
  Ubuntu Calculator Developers (ubuntu-calculator-dev)

For more details, see:
https://code.launchpad.net/~dholbach/ubuntu-calculator-app/add-snapcraft.yaml/+merge/299817

Add a snapcraft.yaml file which allows you to easily build a snap from the source.

On 16.04 (or later), simply run:

  sudo apt install snapcraft; snapcraft

in the source and you should get a working calculator snap.
-- 
Your team Ubuntu Calculator Developers is requested to review the proposed merge of lp:~dholbach/ubuntu-calculator-app/add-snapcraft.yaml into lp:ubuntu-calculator-app.
=== modified file '.bzrignore'
--- .bzrignore	2015-05-27 23:56:21 +0000
+++ .bzrignore	2016-07-12 14:54:25 +0000
@@ -1,2 +1,6 @@
 *.user
 builddir
+stage
+prime
+parts
+ubuntu-calculator-app_*.snap

=== added file 'snapcraft.yaml'
--- snapcraft.yaml	1970-01-01 00:00:00 +0000
+++ snapcraft.yaml	2016-07-12 14:54:25 +0000
@@ -0,0 +1,31 @@
+name: ubuntu-calculator-app
+version: 2.1+snap3
+summary: Ubuntu Calculator app
+description: The calculator app for all Ubuntu devices.
+confinement: strict
+
+
+apps:
+  ubuntu-calculator-app:
+    command: desktop-launch $SNAP/usr/lib/*/qt5/bin/qmlscene $SNAP/usr/share/ubuntu-calculator-app/ubuntu-calculator-app.qml
+    plugs: [unity7, opengl]
+
+parts:
+  calculator:
+    plugin: cmake
+    configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
+    source: .
+    build-packages:
+      - cmake
+      - gettext
+      - intltool
+      - python3
+      - qtbase5-dev
+      - qtdeclarative5-dev
+    stage-packages:
+      - ubuntu-sdk-libs
+      - qtubuntu-desktop
+    snap:
+      - -usr/share/doc
+      - -usr/include
+    after: [desktop/qt5]


Follow ups