From 657d8b8812f16b2c377e5b77ff2ffcc4046a7dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 16 Jul 2017 10:20:56 +0200 Subject: New upstream version 3.25.1 --- data/meson.build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 data/meson.build (limited to 'data/meson.build') 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') -- cgit v1.2.3