Files
federated-calendar/data/appdata/meson.build
T
Sabri Ünal 3c53afc043 appdata: Improve appdata for AppStream 1.0
- Implement appstreamcli validation.
- Correct required and recommended tags.
- Resolve required length errors.
- Include missing `<developer><name>` tag.
- Add the deprecated `developer_name` tag.
- Standardize the translation link with the link in the appdata file.
2023-12-27 18:28:31 +03:00

25 lines
672 B
Meson

appdata_conf = configuration_data()
appdata_conf.set('appid', application_id)
appdata = i18n.merge_file(
input: configure_file(
input: files('org.gnome.Calendar.appdata.xml.in.in'),
output: 'org.gnome.Calendar.appdata.xml.in',
configuration: appdata_conf
),
output: '@0@.appdata.xml'.format(application_id),
po_dir: po_dir,
install: true,
install_dir: calendar_datadir / 'metainfo'
)
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test(
'Validate appstream file',
appstreamcli,
args: ['validate', '--no-net', '--explain', appdata.full_path()],
depends: appdata,
)
endif