From bfcc46852855871653ba57ebe8e49f0c051b6d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 7 Sep 2021 20:54:48 +0200 Subject: [PATCH] meson: Add optional validate appstream file test --- data/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/meson.build b/data/meson.build index f897a2b9..66874a6f 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,6 +1,14 @@ sharedir = join_paths(get_option('prefix'), 'share') iconsdir = join_paths(sharedir, 'icons', 'hicolor') +appstream_util = find_program('appstream-util', required: false) +if appstream_util.found() + test('Validate appstream file', appstream_util, args: [ + 'validate-relax', + join_paths(meson.current_source_dir(), 'com.github.rafostar.Clapper.metainfo.xml') + ]) +endif + install_data('com.github.rafostar.Clapper.svg', install_dir: join_paths(iconsdir, 'scalable', 'apps') )