Commit 8ef04e32 authored by Heather Ellsworth's avatar Heather Ellsworth Committed by Ken VanDine

snap: Update yaml to use GNOME extension

parent bf550e23
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/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment