[gnome-mahjongg] snap: Update for meson and App ID changes



commit d93642dcf0c2728f162126bc2fa380ff1adb8a65
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Fri Feb 1 12:55:55 2019 -0500

    snap: Update for meson and App ID changes

 snap/snapcraft.yaml | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 775658b..d1603ec 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -35,7 +35,7 @@ slots:
   gnome-mahjongg:
     interface: dbus
     bus: session
-    name: org.gnome.gnome-mahjongg
+    name: org.gnome.Mahjongg
 
 apps:
   gnome-mahjongg:
@@ -46,9 +46,7 @@ apps:
       - gsettings
       - unity7
       - wayland
-    desktop: usr/share/applications/gnome-mahjongg.desktop
-    environment:
-      PATH: $SNAP/usr/games:$PATH
+    desktop: usr/share/applications/org.gnome.Mahjongg.desktop
 
 parts:
   gnome-mahjongg:
@@ -57,21 +55,18 @@ parts:
     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
+      sed -i.bak -e 's|=org.gnome.Mahjongg$|=${SNAP}/meta/gui/org.gnome.Mahjongg.png|g' 
data/org.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]
+      cp ../install/snap/gnome-mahjongg/current/usr/share/applications/org.gnome.Mahjongg.desktop 
$SNAPCRAFT_PART_INSTALL/meta/gui/
+    plugin: meson
+    meson-parameters: [--prefix=/snap/gnome-mahjongg/current/usr]
     organize:
       snap/gnome-mahjongg/current/usr: usr
     build-packages:
-      - appstream-util
-      - gnome-pkg-tools
-      - intltool
+      - itstool
       - 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]