diff options
author | Jeremy Bicha <jbicha@ubuntu.com> | 2019-02-05 18:48:41 -0500 |
---|---|---|
committer | Jeremy Bicha <jbicha@ubuntu.com> | 2019-02-05 18:50:24 -0500 |
commit | 8990ef214269821d13c6ebad61e155f3fb8571d3 (patch) | |
tree | 587043b6a03038f178033290682d558c342987ed | |
parent | 6d17a58132dc0fce1573652e8276406d2296aa3a (diff) | |
download | glade-8990ef214269821d13c6ebad61e155f3fb8571d3.tar.gz |
snap: switch to core18
(cherry picked from commit 18214372fae94a1cdaa017ca5ee48cd7c6279dd6)
-rw-r--r-- | snap/snapcraft.yaml | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6f231b1e..dcf1d10b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -14,14 +14,27 @@ description: | By using GtkBuilder, Glade XML files can be used in numerous programming languages including C, C++, C#, Vala, Java, Perl, Python, and others. -grade: devel # must be 'stable' to release into candidate/stable channels +grade: stable # must be 'stable' to release into candidate/stable channels confinement: strict +base: core18 plugs: - gnome-3-26-1604: - interface: content - target: $SNAP/gnome-platform - default-provider: gnome-3-26-1604:gnome-3-26-1604 + 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 apps: glade: @@ -37,16 +50,27 @@ apps: desktop: usr/share/applications/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: - build-attributes: [no-system-libraries] after: [desktop-gnome-platform] source: . source-type: git plugin: autotools configflags: [--disable-maintainer-mode, --prefix=/snap/glade/current/usr] - prepare: + override-build: | sed -i.bak -e 's|=glade$|=${SNAP}/meta/gui/glade.png|g' data/glade.desktop.in.in - install: | + snapcraftctl build mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/ cp ../src/data/icons/hicolor/256x256/apps/glade.png $SNAPCRAFT_PART_INSTALL/meta/gui/ organize: |