diff --git a/me.jtheoof.swappy.metainfo.xml b/me.jtheoof.swappy.metainfo.xml new file mode 100644 index 0000000..e93dbf3 --- /dev/null +++ b/me.jtheoof.swappy.metainfo.xml @@ -0,0 +1,52 @@ + + + me.jtheoof.swappy + CC0-1.0 + MIT + swappy + Wayland native snapshot editing tool, inspired by Snappy on macOS + +

A Wayland native snapshot and image editing tool, inspired by Snappy on macOS. Works great with grim, slurp and sway. But can easily work with other screen copy tools that can output a final image to stdout.

+
+ + Utility + Graphics + + + wayland + snapshot + annotation + editing + + + https://github.com/jtheoof/swappy + https://github.com/jtheoof/swappy + https://github.com/jtheoof/swappy/issues + https://github.com/jtheoof/swappy?tab=readme-ov-file#i18n + https://github.com/jtheoof/swappy + https://github.com/jtheoof/swappy?tab=readme-ov-file#contributing + + swappy + image/png + image/jpeg + + + Jeremy Attali + https://github.com/jtheoof + + + + https://raw.githubusercontent.com/jtheoof/swappy/596b9a8b17234303a9d4d2ea1d3107cb5442253e/docs/images/screenshot-1.0.0.png + + + + #008080 + #f78a00 + + + + https://github.com/jtheoof/swappy/blob/master/CHANGELOG.md#151-2022-11-20 + + + swappy +
diff --git a/meson.build b/meson.build index 5b0746f..669a7e3 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,8 @@ project( ], ) +application_id = 'me.jtheoof.swappy' + version = '"@0@"'.format(meson.project_version()) git = find_program('git', native: true, required: false) if git.found() @@ -42,6 +44,7 @@ pango = dependency('pango') math = cc.find_library('m') gtk = dependency('gtk+-3.0', version: '>=3.20.0') gio = dependency('gio-2.0') +appstream_util = find_program('appstreamcli', required: false) subdir('res') subdir('src/po') @@ -74,6 +77,18 @@ executable( install: true, ) +app_data_file ='@0@.metainfo.xml'.format(application_id) +# Validate app data file +if appstream_util.found() + test('Validate app data file', appstream_util, + args: ['validate', app_data_file] + ) +endif + +# Install app data file +install_data(app_data_file, install_dir: get_option('datadir') + '/metainfo') + +# Build man pages scdoc = find_program('scdoc', required: get_option('man-pages')) if scdoc.found()