[gnome-tetravex] Add snap packaging
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Add snap packaging
- Date: Mon, 4 Feb 2019 02:39:14 +0000 (UTC)
commit 5d49e51c4924c3012fdcaeb2c4a794b6c1d8ff0c
Author: Ken VanDine <kvandine gnome org>
Date: Wed Nov 15 14:55:21 2017 -0500
Add snap packaging
Closes: https://gitlab.gnome.org/GNOME/gnome-tetravex/issues/11
snap/snapcraft.yaml | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..e86c1ac
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,80 @@
+name: gnome-tetravex
+version: git
+summary: Reorder tiles to fit a square
+description: |
+ Each square piece has a number on each side. Position the pieces on the left
+ side of the board so that the same numbers are next to each other. If the
+ numbers don't match, you can't put the piece there. Move quickly: you're
+ being timed!
+
+ You can make the game easier or harder by changing the size of the board.
+
+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-tetravex:
+ interface: dbus
+ bus: session
+ name: org.gnome.Tetravex
+
+apps:
+ gnome-tetravex:
+ command: desktop-launch gnome-tetravex
+ plugs:
+ - desktop
+ - desktop-legacy
+ - gsettings
+ - unity7
+ - wayland
+ desktop: usr/share/applications/org.gnome.Tetravex.desktop
+
+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-tetravex:
+ after: [desktop-gnome-platform]
+ source: .
+ source-type: git
+ override-build: |
+ sed -i.bak -e 's|Icon=org.gnome.Tetravex$|Icon=${SNAP}/meta/gui/org.gnome.Tetravex.png|g'
data/org.gnome.Tetravex.desktop.in
+ snapcraftctl build
+ mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+ cp ../src/data/icons/hicolor/48x48/org.gnome.Tetravex.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+ cp ../install/snap/gnome-tetravex/current/usr/share/applications/org.gnome.Tetravex.desktop
$SNAPCRAFT_PART_INSTALL/meta/gui/
+ plugin: meson
+ meson-parameters: [--prefix=/snap/gnome-tetravex/current/usr]
+ organize:
+ snap/gnome-tetravex/current/usr: usr
+ build-packages:
+ - gettext
+ - itstool
+ - libglib2.0-dev
+ - libgtk-3-dev
+ - valac
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]