summaryrefslogtreecommitdiff
path: root/build-aux/snap
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-08-21 10:58:40 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-08-21 10:58:40 +0200
commit7f079d48a2f00e9fe261928e94f340931d35547a (patch)
tree3953a15b915d41a87f5d586c968b3ef22c50deb1 /build-aux/snap
parentc502fe7b056b00189313cdf1d7494ecf150acd52 (diff)
parent11c0cfbd587f1f07c797ac506e1b0cac63cfd2c7 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'build-aux/snap')
-rw-r--r--build-aux/snap/snapcraft.yaml95
1 files changed, 95 insertions, 0 deletions
diff --git a/build-aux/snap/snapcraft.yaml b/build-aux/snap/snapcraft.yaml
new file mode 100644
index 0000000..d9c071b
--- /dev/null
+++ b/build-aux/snap/snapcraft.yaml
@@ -0,0 +1,95 @@
+name: simple-scan
+version: git
+summary: Document Scanning Application
+description: |
+ A really easy way to scan both documents and photos from a scanner (e.g. a flatbed scanner).
+
+grade: stable # must be 'stable' to release into candidate/stable channels
+confinement: strict
+base: core18
+
+slots:
+ # for GtkApplication registration
+ simple-scan:
+ interface: dbus
+ bus: session
+ name: org.gnome.SimpleScan
+
+apps:
+ simple-scan:
+ plugs:
+ - network
+ - network-control
+ - home
+ - gsettings
+ - hardware-observe
+ - mount-observe
+ - system-observe
+ - io-ports-control
+ - raw-usb
+ command: usr/bin/simple-scan
+ extensions: [gnome-3-28]
+ desktop: usr/share/applications/simple-scan.desktop
+ environment:
+ GSETTINGS_SCHEMA_DIR: $SNAP/share/glib-2.0/schemas
+
+parts:
+ libsane:
+ 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