[gnome-sound-recorder] misc: use .metainfo instead of .appdata
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] misc: use .metainfo instead of .appdata
- Date: Tue, 2 Jun 2020 16:39:31 +0000 (UTC)
commit bc2a245c56938a80d40874e0a7ac00fc78cc6283
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Tue Jun 2 18:39:03 2020 +0200
misc: use .metainfo instead of .appdata
per the latest specs of Appstream, the $datadir/appdata location is dep
and we should be using $datadir/metainfo instead
data/appdata/meson.build | 20 ++++++++++----------
...in => org.gnome.SoundRecorder.metainfo.xml.in.in} | 0
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index d37b20f..1f5744e 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,15 +1,15 @@
-appdata_conf = configuration_data()
-appdata_conf.set('app-id', application_id)
-appdata_conf.set('gettext-package', gettext_package)
+metainfo_conf = configuration_data()
+metainfo_conf.set('app-id', application_id)
+metainfo_conf.set('gettext-package', gettext_package)
-appdata_file = i18n.merge_file(
- 'appdata-file',
+metainfo_file = i18n.merge_file(
+ 'metainfo-file',
input: configure_file(
- input: 'org.gnome.SoundRecorder.appdata.xml.in.in',
+ input: 'org.gnome.SoundRecorder.metainfo.xml.in.in',
output: '@BASENAME@',
- configuration: appdata_conf
+ configuration: metainfo_conf
),
- output: '@0 appdata xml'.format(application_id),
+ output: '@0 metainfo xml'.format(application_id),
po_dir: po_dir,
install: true,
install_dir: sound_recorder_datadir / 'metainfo'
@@ -18,9 +18,9 @@ appdata_file = i18n.merge_file(
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test(
- 'validate-appdata', appstream_util,
+ 'validate-metainfo', appstream_util,
args: [
- 'validate-relax', '--nonet', appdata_file.full_path()
+ 'validate-relax', '--nonet', metainfo_file.full_path()
]
)
endif
diff --git a/data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
b/data/appdata/org.gnome.SoundRecorder.metainfo.xml.in.in
similarity index 100%
rename from data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
rename to data/appdata/org.gnome.SoundRecorder.metainfo.xml.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]