[gnote/meson] Process and install appdata
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Process and install appdata
- Date: Sun, 28 Mar 2021 15:03:34 +0000 (UTC)
commit d36fbc52293a778e0468bab808baf34b8826c162
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Mar 28 16:53:38 2021 +0300
Process and install appdata
data/meson.build | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 69c8c5bf..7866a320 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -37,3 +37,18 @@ configure_file(
install_dir: get_option('datadir') / 'dbus-1/services',
)
+gnote_appdata = 'org.gnome.gnote.appdata.xml'
+appdata_file = i18n.merge_file(
+ gnote_appdata,
+ input: gnote_appdata + '.in',
+ output: gnote_appdata,
+ po_dir: '../po',
+ install: true,
+ install_dir: get_option('datadir') / 'metainfo'
+)
+
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test('validate-appdata', appstream_util, args: ['validate-relax', '--nonet', appdata_file])
+endif
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]