[five-or-more] snap: Add initial Snap packaging



commit 2de3059513ec338e3b82c90a17389bacd9caab3a
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Thu Jan 31 20:30:31 2019 -0500

    snap: Add initial Snap packaging

 snap/snapcraft.yaml | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..bf090a7
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,90 @@
+name: five-or-more
+version: git
+summary: Remove colored balls from the board by forming lines
+description: |
+ Five or More is the GNOME port of a once-popular computer game. Align five or
+ more objects of the same color into a line to cause them to disappear and
+ score points. Earn many more points by lining up as many objects as possible
+ before clearing them.
+
+ More objects appear after every turn. Play for as long as possible, until the
+ board is completely full!
+grade: stable # must be 'stable' to release into candidate/stable channels
+confinement: strict
+base: core18
+
+# Launchpad doesn't recognize these fields yet
+passthrough:
+  license: GPL-2.0+
+  title: Five or More
+
+plugs:
+  gnome-3-28-1804:
+    interface: content
+    target: $SNAP/gnome-platform
+    default-provider: gnome-3-28-1804
+  gtk-3-themes:
+    interface: content
+    target: $SNAP/data-dir/themes
+    default-provider: gtk-common-themes
+  icon-themes:
+    interface: content
+    target: $SNAP/data-dir/icons
+    default-provider: gtk-common-themes
+
+slots:
+  # for GtkApplication registration
+  five-or-more:
+    interface: dbus
+    bus: session
+    name: org.gnome.five-or-more
+
+apps:
+  five-or-more:
+    command: desktop-launch five-or-more
+    plugs:
+      - desktop
+      - desktop-legacy
+      - gsettings
+      - unity7
+      - wayland
+    desktop: usr/share/applications/five-or-more.desktop
+    environment:
+      GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
+
+parts:
+  desktop-gnome-platform:
+    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
+    source-subdir: gtk
+    plugin: make
+    make-parameters: ["FLAVOR=gtk3"]
+    build-packages:
+      - build-essential
+      - libgtk-3-dev
+    override-build: |
+      snapcraftctl build
+      mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform
+
+  five-or-more:
+    after: [desktop-gnome-platform]
+    source: .
+    source-type: git
+    override-build: |
+      sed -i.bak -e 's|Icon=org.gnome.five-or-more$|Icon=${SNAP}/meta/gui/org.gnome.five-or-more.png|g' 
data/org.gnome.five-or-more.desktop.in
+      snapcraftctl build
+      mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../src/data/icons/hicolor/256x256/org.gnome.five-or-more.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../install/snap/five-or-more/current/usr/share/applications/org.gnome.five-or-more.desktop 
$SNAPCRAFT_PART_INSTALL/meta/gui/
+    plugin: meson
+    meson-parameters: [--prefix=/snap/five-or-more/current/usr]
+    organize:
+      snap/five-or-more/current/usr: usr
+    build-packages:
+      - gettext
+      - itstool
+      - libglib2.0-dev
+      - libgnome-games-support-1-dev
+      - libgtk-3-dev
+      - librsvg2-dev
+    stage-packages:
+      - libgnome-games-support-1-3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]