[hitori/gnome-3-30] snap: Add snap build configuration



commit fa4dbe68dd6f202bb0d8c0bc371bffba769faa85
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Fri Jan 25 10:38:37 2019 -0500

    snap: Add snap build configuration
    
    (cherry picked from commit 94d9e33b007668497df20bece952f4f6a031bfbf)

 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..7f5ab11
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,90 @@
+name: gnome-hitori
+version: git
+summary: Play the Hitori puzzle game
+description: |
+  Hitori is a logic game similar to the popular game of Sudoku.
+
+  You play the game against the clock, aiming to eliminate all the duplicate
+  numbers in each row and column in the fastest time.
+  Multiple sizes of game board are supported, and you can place markers on
+  cells to help work out the solution.
+  If you get stuck, the game can give you a hint.
+
+grade: stable # must be 'stable' to release into candidate/stable channels
+confinement: strict
+base: core18
+
+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
+  gnome-hitori:
+    interface: dbus
+    bus: session
+    name: org.gnome.Hitori
+
+apps:
+  gnome-hitori:
+    command: desktop-launch hitori
+    common-id: org.gnome.Hitori
+    environment:
+      GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
+    plugs:
+      - desktop
+      - desktop-legacy
+      - gsettings
+      - unity7
+      - wayland
+    desktop: usr/share/applications/org.gnome.Hitori.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
+
+  gnome-hitori:
+    after: [desktop-gnome-platform]
+    source: https://gitlab.gnome.org/GNOME/hitori.git
+    source-type: git
+    plugin: autotools
+    # workaround the issue described in https://launchpad.net/bugs/1583250
+    configflags: [--prefix=/snap/gnome-hitori/current/usr]
+    organize:
+      snap/gnome-hitori/current/usr: usr
+    override-build: |
+      sed -i.bak -e 's|=org.gnome.Hitori$|=${SNAP}/meta/gui/org.gnome.Hitori.png|g' 
data/org.gnome.Hitori.desktop.in
+      snapcraftctl build
+      mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../src/data/icons/48x48/org.gnome.Hitori.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp data/org.gnome.Hitori.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
+    build-packages:
+      - appstream-util
+      - autoconf-archive
+      - desktop-file-utils
+      - gettext
+      - gsettings-desktop-schemas-dev
+      - libglib2.0-dev
+      - libgtk-3-dev
+      - yelp-tools


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