build: Use appstreamcli instead of appstream-util

appstream-glib is in maintenance mode
This commit is contained in:
Kévin Commaille 2023-10-03 17:45:29 +02:00
parent 2c4b97b658
commit b647462090
No known key found for this signature in database
GPG key ID: 29A48C1F03620416
2 changed files with 3 additions and 3 deletions

View file

@ -58,9 +58,9 @@ appdata_file = i18n.merge_file(
install_dir: datadir / 'metainfo'
)
# Validate Appdata
if appstream_util.found()
if appstreamcli.found()
test(
'validate-appdata', appstream_util,
'validate-appdata', appstreamcli,
args: [
'validate', '--nonet', appdata_file.full_path()
]

View file

@ -39,7 +39,7 @@ dependency('xdg-desktop-portal', version: '>= 1.14.1')
glib_compile_resources = find_program('glib-compile-resources', required: true)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
desktop_file_validate = find_program('desktop-file-validate', required: false)
appstream_util = find_program('appstream-util', required: false)
appstreamcli = find_program('appstreamcli', required: false)
cargo = find_program('cargo', required: true)
cargo_version = run_command(cargo, '--version', check: true).stdout().strip()
message(cargo_version)