summaryrefslogtreecommitdiff
path: root/data/meson.build
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-16 10:20:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-16 10:20:58 +0200
commit0d9b56ff5bbc3b263bb24d60a5d53e09e2785532 (patch)
treebe9cd87ce9f41713ed2710b9b424861155a43f33 /data/meson.build
parent6c629d45711b613257d30e8d5a1527003d9c3f1f (diff)
parent657d8b8812f16b2c377e5b77ff2ffcc4046a7dce (diff)
Updated version 3.25.1 from 'upstream/3.25.1'
with Debian dir 8914d0848d9107f42ab3763c541ef1480cee0f27
Diffstat (limited to 'data/meson.build')
-rw-r--r--data/meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..8e5412f
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,30 @@
+foreach size: [ '16x16', '22x22', '24x24', '32x32', '48x48', 'scalable' ]
+ suffix = 'png'
+ if size == 'scalable'
+ suffix = 'svg'
+ endif
+ install_data (join_paths ('icons', size , 'object-crop.' + suffix),
+ install_dir: join_paths (icondir, 'hicolor', size, 'actions'))
+endforeach
+
+install_data ('org.gnome.SimpleScan.gschema.xml',
+ install_dir: join_paths (datadir, 'glib-2.0', 'schemas'))
+meson.add_install_script ('meson_compile_gschema.py')
+
+# Note the keywords explicitly listed to stop the icon field being translated
+# https://bugs.launchpad.net/bugs/1624662
+custom_target ('simple-scan.desktop',
+ output: 'simple-scan.desktop',
+ input: 'simple-scan.desktop.in',
+ command: [ msgfmt, '--desktop', '--keyword=Name', '--keyword=GenericName', '--keyword=Comment', '--keyword=Keywords', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@' ],
+ install: true,
+ install_dir: join_paths (datadir, 'applications'))
+
+custom_target ('simple-scan.appdata.xml',
+ output: 'simple-scan.appdata.xml',
+ input: 'simple-scan.appdata.xml.in',
+ command: [ msgfmt, '--xml', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@' ],
+ install: true,
+ install_dir: join_paths (datadir, 'appdata'))
+
+install_man ('simple-scan.1')