[five-or-more/gnome-3-30] snap: Add initial Snap packaging



commit 1f9e532f677a20b7669c5e68a1c714e712ed52f6
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..6edf3d0
--- /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=five-or-more$|Icon=${SNAP}/meta/gui/five-or-more.png|g' 
data/five-or-more.desktop.in
+      snapcraftctl build
+      mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../src/data/icons/hicolor/256x256/five-or-more.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../install/snap/five-or-more/current/usr/share/applications/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]