From 7818bed1596ace451a24e57166fdf347a3fb8b31 Mon Sep 17 00:00:00 2001 From: "Tom A. Wagner" Date: Wed, 1 Dec 2021 19:31:07 +0100 Subject: [PATCH] Add appstream metadata file --- data/meson.build | 25 ++++++++++++ ...freedesktop.ryuukyu.Helvum.metainfo.xml.in | 39 +++++++++++++++++++ meson.build | 1 + 3 files changed, 65 insertions(+) create mode 100644 data/org.freedesktop.ryuukyu.Helvum.metainfo.xml.in diff --git a/data/meson.build b/data/meson.build index 521e9df..305c8f4 100644 --- a/data/meson.build +++ b/data/meson.build @@ -22,3 +22,28 @@ install_data( desktop_file, install_dir: datadir / 'applications' ) + + +appdata_conf = configuration_data() +appdata_conf.set('app-id', base_id) +appdata_file = configure_file( + input: '@0@.metainfo.xml.in'.format(base_id), + output: '@BASENAME@', + configuration: appdata_conf +) + +# Validate Appdata +if appstream_util.found() + test( + 'validate-appdata', + appstream_util, + args: [ + 'validate', '--nonet', appdata_file + ], + ) +endif + +install_data( + appdata_file, + install_dir: datadir / 'metainfo' +) diff --git a/data/org.freedesktop.ryuukyu.Helvum.metainfo.xml.in b/data/org.freedesktop.ryuukyu.Helvum.metainfo.xml.in new file mode 100644 index 0000000..f5934f8 --- /dev/null +++ b/data/org.freedesktop.ryuukyu.Helvum.metainfo.xml.in @@ -0,0 +1,39 @@ + + + + @app-id@ + CC-BY-SA-4.0 + GPL-3.0-only + Helvum + Patchbay for PipeWire + +

+ Helvum is a graphical patchbay for PipeWire. + It allows creating and removing connections between applications and/or devices to reroute + flow of audio, video and MIDI data to where it is needed. +

+
+ + + https://gitlab.freedesktop.org/ryuukyu/helvum/-/raw/main/docs/screenshot.png + + + @app-id@.desktop + https://gitlab.freedesktop.org/ryuukyu/helvum + https://gitlab.freedesktop.org/ryuukyu/helvum/-/issues + + + + + + + + + + + HiDpiIcon + ModernToolkit + + Tom A. Wagner + tom.a.wagner@protonmail.com +
diff --git a/meson.build b/meson.build index 4c17104..4965b78 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,7 @@ dependency('gtk4', version: '>= 4.4.0') dependency('libpipewire-0.3') desktop_file_validate = find_program('desktop-file-validate', required: false) +appstream_util = find_program('appstream-util', required: false) cargo = find_program('cargo', required: true) cargo_script = find_program('build-aux/cargo.sh')