[gnome-sound-recorder/bilelmoussaoui/for-42: 2/4] Move appdata file
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/bilelmoussaoui/for-42: 2/4] Move appdata file
- Date: Sat, 19 Mar 2022 16:55:44 +0000 (UTC)
commit 21a0d816c732846a99d332bbdd03fa4269e30552
Author: Bilal Elmoussaoui <belmouss redhat com>
Date: Sat Mar 19 17:51:58 2022 +0100
Move appdata file
data/appdata/gsr-main.png | Bin 29448 -> 0 bytes
data/appdata/meson.build | 25 --------------------
data/meson.build | 26 ++++++++++++++++++++-
.../org.gnome.SoundRecorder.metainfo.xml.in.in | 0
4 files changed, 25 insertions(+), 26 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 0ff8fa5..12c32af 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -55,4 +55,28 @@ data_res = gnome.compile_resources(
install: true
)
-subdir('appdata')
+metainfo_conf = configuration_data()
+metainfo_conf.set('app-id', application_id)
+metainfo_conf.set('gettext-package', gettext_package)
+
+metainfo_file = i18n.merge_file(
+ input: configure_file(
+ input: 'org.gnome.SoundRecorder.metainfo.xml.in.in',
+ output: '@BASENAME@',
+ configuration: metainfo_conf
+ ),
+ output: '@0 metainfo xml'.format(application_id),
+ po_dir: po_dir,
+ install: true,
+ install_dir: sound_recorder_datadir / 'metainfo'
+)
+
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test(
+ 'validate-metainfo', appstream_util,
+ args: [
+ 'validate-relax', '--nonet', metainfo_file.full_path()
+ ]
+ )
+endif
diff --git a/data/appdata/org.gnome.SoundRecorder.metainfo.xml.in.in
b/data/org.gnome.SoundRecorder.metainfo.xml.in.in
similarity index 100%
rename from data/appdata/org.gnome.SoundRecorder.metainfo.xml.in.in
rename to data/org.gnome.SoundRecorder.metainfo.xml.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]