build: Actually translate metainfo

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/751>
This commit is contained in:
Balló György
2024-08-30 23:10:13 +02:00
committed by Marge Bot
parent 5fde6bcc3a
commit ef5467fb64
5 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,6 @@
gnome = import('gnome')
i18n = import('i18n')
datadir = get_option('datadir')
sysconfdir = get_option('sysconfdir')
@@ -67,8 +70,12 @@ endif
# Metainfo file
install_data('org.gnome.Calls.metainfo.xml',
install_dir: join_paths(datadir, 'metainfo'),
metainfo_file = i18n.merge_file(
input: 'org.gnome.Calls.metainfo.xml.in',
output: 'org.gnome.Calls.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
appstreamcli = find_program('appstreamcli', required: false)
@@ -77,8 +84,7 @@ if appstreamcli.found()
args: ['validate',
'--pedantic',
'--no-net',
join_paths(meson.current_source_dir(),
'org.gnome.Calls.metainfo.xml')
metainfo_file
])
endif