summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen VanDine <kvandine@gnome.org>2017-11-15 13:16:07 -0500
committerJeremy Bicha <jbicha@ubuntu.com>2019-02-05 18:50:22 -0500
commit6d17a58132dc0fce1573652e8276406d2296aa3a (patch)
treed35cd16bb9588757a238aa3d95829893a184ee2d
parentcb7cdd8fc01e20950e8eb5039d4133a2610082bf (diff)
downloadglade-6d17a58132dc0fce1573652e8276406d2296aa3a.tar.gz
packaging: Add snap packaging
Adds snap packaging https://bugzilla.gnome.org/show_bug.cgi?id=790394 (cherry picked from commit 9bb50acb4359f22bc8d1e0e8751eb07dbb7f33b0)
-rw-r--r--snap/snapcraft.yaml65
1 files changed, 65 insertions, 0 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 00000000..6f231b1e
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,65 @@
+name: glade
+version: git
+summary: Create or open user interface designs for GTK+ applications
+description: |
+
+ Glade is a RAD tool to enable quick & easy development of user interfaces
+ for the GTK+ 3 toolkit and the GNOME desktop environment.
+
+ The user interfaces designed in Glade are saved as XML and these can be
+ loaded by applications dynamically as needed by using GtkBuilder or used
+ directly to define a new GtkWidget derived object class using
+ GTK+ new template feature.
+
+ 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
+confinement: strict
+
+plugs:
+ gnome-3-26-1604:
+ interface: content
+ target: $SNAP/gnome-platform
+ default-provider: gnome-3-26-1604:gnome-3-26-1604
+
+apps:
+ glade:
+ command: desktop-launch glade
+ plugs:
+ - desktop
+ - desktop-legacy
+ - home
+ - gsettings
+ - network
+ - unity7
+ - wayland
+ desktop: usr/share/applications/glade.desktop
+
+parts:
+ 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:
+ sed -i.bak -e 's|=glade$|=${SNAP}/meta/gui/glade.png|g' data/glade.desktop.in.in
+ install: |
+ mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
+ cp ../src/data/icons/hicolor/256x256/apps/glade.png $SNAPCRAFT_PART_INSTALL/meta/gui/
+ organize:
+ snap/glade/current/usr: usr
+ build-packages:
+ - gnome-common
+ - libxml2-dev
+ - libglib2.0-dev
+ - libgtk-3-dev
+ - python-gi-dev
+ - python2.7-dev
+ - gtk-doc-tools
+ - yelp-tools
+ - intltool
+ - gobject-introspection
+ - libgirepository1.0-dev