[simple-scan/gnome-3-30] snap: Updated to use core18 and gnome-3-28-1804
- From: Ken VanDine <kvandine src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/gnome-3-30] snap: Updated to use core18 and gnome-3-28-1804
- Date: Sat, 2 Feb 2019 05:22:04 +0000 (UTC)
commit 3252ffa4876e5dbf167a2a9afd7778edde50cbeb
Author: Ken VanDine <ken vandine canonical com>
Date: Sat Feb 2 00:21:40 2019 -0500
snap: Updated to use core18 and gnome-3-28-1804
snap/snapcraft.yaml | 69 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 60 insertions(+), 9 deletions(-)
---
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index c3b77ee..3e3d92d 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -5,27 +5,76 @@ description: |
Simple Scan allows you to get images from a scanner (e.g. a flatbed scanner)
grade: stable # must be 'stable' to release into candidate/stable channels
-confinement: classic
+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
+ simple-scan:
+ interface: dbus
+ bus: session
+ name: org.gnome.SimpleScan
+
apps:
simple-scan:
- command: bin/desktop-launch simple-scan
+ plugs:
+ - desktop
+ - desktop-legacy
+ - network
+ - network-control
+ - home
+ - gsettings
+ - hardware-observe
+ - mount-observe
+ - system-observe
+ - io-ports-control
+ - raw-usb
+ - unity7
+ command: bin/desktop-launch ${SNAP}/usr/bin/simple-scan
desktop: usr/share/applications/simple-scan.desktop
environment:
GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
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
+
libsane:
- after: [desktop-gtk3]
+ after: [desktop-gnome-platform]
source: https://salsa.debian.org/debian/sane-backends.git
source-type: git
source-tag: upstream/1.0.27
plugin: autotools
- # workaround the issue described in https://launchpad.net/bugs/1583250
configflags: [--prefix=/snap/simple-scan/current/usr, --with-api-spec=no]
organize:
snap/simple-scan/current/usr: usr
- build-attributes: [no-system-libraries]
build-packages:
- autotools-dev
- autoconf
@@ -53,10 +102,6 @@ parts:
meson-parameters: [--prefix=/usr]
organize:
snap/simple-scan/current/usr: usr
- install: |
- mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/
- cp snapbuild/data/simple-scan.desktop $SNAPCRAFT_PART_INSTALL/meta/gui/
- build-attributes: [no-system-libraries]
build-packages:
- desktop-file-utils
- gettext
@@ -75,3 +120,9 @@ parts:
- python-scour
- valac
- zlib1g-dev
+ libs:
+ plugin: nil
+ stage-packages:
+ - libgusb2
+ - libpackagekit-glib2-18
+ - libieee1284-3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]