[gnome-mahjongg/gnome-3-22] snap: initial packaging



commit 56ba767b6251ccfd46591772f2e5f35c2de4915f
Author: Ken VanDine <kvandine gnome org>
Date:   Wed Nov 15 14:42:48 2017 -0500

    snap: initial packaging
    
    Closes: https://gitlab.gnome.org/GNOME/gnome-mahjongg/issues/10

 snap/snapcraft.yaml | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..775658b
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,77 @@
+name: gnome-mahjongg
+version: git
+summary: Match tiles and clear the board
+description: |
+  A solitaire version of the classic Eastern tile game. Tiles are stacked on
+  the board at the start of the game. The goal is to remove all the tiles in
+  as little time as possible. Select two matching tiles and they will disappear
+  from the board, but you can only select a tile if there is an empty space to
+  its left or right at the same level. Be careful: tiles that look alike
+  may actually be slightly different.
+
+  GNOME Mahjongg features a variety of starting layouts, some easy and some
+  difficult. If you get stuck, you can ask for a hint, but this adds a large
+  time penalty.  
+
+grade: stable # must be 'stable' to release into candidate/stable channels
+confinement: strict
+
+plugs:
+  gnome-3-26-1604:
+    interface: content
+    target: $SNAP/gnome-platform
+    default-provider: gnome-3-26-1604
+  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-mahjongg:
+    interface: dbus
+    bus: session
+    name: org.gnome.gnome-mahjongg
+
+apps:
+  gnome-mahjongg:
+    command: desktop-launch gnome-mahjongg
+    plugs:
+      - desktop
+      - desktop-legacy
+      - gsettings
+      - unity7
+      - wayland
+    desktop: usr/share/applications/gnome-mahjongg.desktop
+    environment:
+      PATH: $SNAP/usr/games:$PATH
+
+parts:
+  gnome-mahjongg:
+    build-attributes: [no-system-libraries]
+    after: [desktop-gnome-platform]
+    source: .
+    source-type: git
+    override-build: |
+      sed -i.bak -e 's|=gnome-mahjongg$|=${SNAP}/meta/gui/gnome-mahjongg.png|g' 
data/gnome-mahjongg.desktop.in
+      snapcraftctl build
+      mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp ../src/data/icons/hicolor/48x48/gnome-mahjongg.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+      cp data/gnome-mahjongg.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
+    plugin: autotools
+    configflags: [--prefix=/snap/gnome-mahjongg/current/usr,  
--bindir=/snap/gnome-mahjongg/current/usr/games]
+    organize:
+      snap/gnome-mahjongg/current/usr: usr
+    build-packages:
+      - appstream-util
+      - gnome-pkg-tools
+      - intltool
+      - libglib2.0-dev
+      - libgtk-3-dev
+      - librsvg2-dev
+      - valac
+      - yelp-tools


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