blob: 3e3d92db975f95e4ecfd536559792235a393215c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
name: simple-scan
version: git
summary: Document Scanning Application
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: 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:
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-gnome-platform]
source: https://salsa.debian.org/debian/sane-backends.git
source-type: git
source-tag: upstream/1.0.27
plugin: autotools
configflags: [--prefix=/snap/simple-scan/current/usr, --with-api-spec=no]
organize:
snap/simple-scan/current/usr: usr
build-packages:
- autotools-dev
- autoconf
- chrpath
- dh-systemd
- gettext
- libavahi-client-dev
- libcups2-dev
- libgphoto2-dev
- libieee1284-3-dev
- libjpeg-dev
- libltdl3-dev
- libsystemd-dev
- libtiff-dev
- libusb-1.0-0-dev
- pkg-config
- po-debconf
- xutils-dev
simple-scan:
after: [libsane]
source: .
source-type: git
plugin: meson
meson-parameters: [--prefix=/usr]
organize:
snap/simple-scan/current/usr: usr
build-packages:
- desktop-file-utils
- gettext
- gnome-common
- intltool
- itstool
- libcairo2-dev
- libcolord-dev
- libdbus-glib-1-dev
- libglib2.0-dev
- libgtk-3-dev
- libgdk-pixbuf2.0-dev
- libgusb-dev
- libpackagekit-glib2-dev
- libsane-dev
- python-scour
- valac
- zlib1g-dev
libs:
plugin: nil
stage-packages:
- libgusb2
- libpackagekit-glib2-18
- libieee1284-3
|