summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snap/snapcraft.yaml52
1 files changed, 9 insertions, 43 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 58fc4062..c4633674 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,7 +1,5 @@
name: glade
-version: git
-version-script: |
- echo $(git describe --tags | sed 's/GLADE_//g'|sed 's/_/./g')
+adopt-info: glade
summary: Create or open user interface designs for GTK+ applications
description: |
@@ -20,24 +18,6 @@ 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
- sound-themes:
- interface: content
- target: $SNAP/data-dir/sounds
- default-provider: gtk-common-themes
-
slots:
# for GtkApplication registration
glade:
@@ -46,38 +26,24 @@ slots:
name: org.gnome.Glade
apps:
glade:
- command: desktop-launch glade
+ command: usr/bin/glade
+ extensions: [gnome-3-28]
plugs:
- - desktop
- - desktop-legacy
- home
- gsettings
- network
- - unity7
- - wayland
- desktop: usr/share/applications/glade.desktop
+ desktop: usr/share/applications/org.gnome.Glade.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
-
glade:
- after: [desktop-gnome-platform]
source: .
source-type: git
- plugin: autotools
- configflags: [--disable-maintainer-mode, --prefix=/snap/glade/current/usr]
+ plugin: meson
+ meson-parameters:
+ - --prefix=/usr
override-build: |
- sed -i.bak -e 's|=org.gnome.Glade$|=${SNAP}/meta/gui/org.gnome.Glade.svg|g' data/glade.desktop.in.in
+ snapcraftctl set-version $(git describe --tags | sed 's/GLADE_//g'|sed 's/_/./g')
+ sed -i.bak -e 's|=org.gnome.Glade$|=${SNAP}/meta/gui/org.gnome.Glade.svg|g' data/org.gnome.Glade.desktop.in.in
snapcraftctl build
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
cp ../src/data/icons/hicolor/scalable/apps/org.gnome.Glade.svg $SNAPCRAFT_PART_INSTALL/meta/gui/