From ca9b00145ceeadad36edeac7f87aa6e721b7959b Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Tue, 6 Sep 2022 20:17:36 +0200 Subject: [PATCH] mpv.metainfo.xml: add XDG appstream metadata manifest --- etc/mpv.metainfo.xml | 29 +++++++++++++++++++++++++++++ meson.build | 1 + wscript_build.py | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 etc/mpv.metainfo.xml diff --git a/etc/mpv.metainfo.xml b/etc/mpv.metainfo.xml new file mode 100644 index 0000000000..618abd3f60 --- /dev/null +++ b/etc/mpv.metainfo.xml @@ -0,0 +1,29 @@ + + + io.mpv.mpv + mpv + A free, open source, and cross-platform media player + +

mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.

+

mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more.

+

While mpv strives for minimalism and provides no real GUI, it has a small controller on top of the video for basic control.

+

mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding can be enabled at runtime on demand.

+

Powerful scripting capabilities can make the player do almost anything. There is a large selection of user scripts on the wiki.

+

A straightforward C API was designed from the ground up to make mpv usable as a library and facilitate easy integration into other applications.

+
+ CC0-1.0 + GPL-2.0-or-later AND LGPL-2.0-or-later + mpv.io + mpv.desktop + + + + https://mpv.io/images/mpv-screenshot-34cd36ae.jpg + Main window + + + https://mpv.io/ + https://github.com/mpv-player/mpv/issues + https://github.com/mpv-player/mpv/wiki/FAQ + https://mpv.io/manual/stable +
diff --git a/meson.build b/meson.build index e710dc87b0..c0c769736b 100644 --- a/meson.build +++ b/meson.build @@ -1674,6 +1674,7 @@ if get_option('cplayer') install_data('etc/_mpv.zsh', install_dir: zsh_install_dir, rename: '_mpv') install_data('etc/mpv.desktop', install_dir: join_paths(datadir, 'applications')) + install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo')) install_data('etc/encoding-profiles.conf', install_dir: join_paths(confdir, 'mpv')) foreach size: ['16x16', '32x32', '64x64', '128x128'] diff --git a/wscript_build.py b/wscript_build.py index b389284317..980eca19ad 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -760,6 +760,10 @@ def build(ctx): ctx.env.DATADIR + '/applications', ['etc/mpv.desktop'] ) + ctx.install_files( + ctx.env.DATADIR + '/metainfo', + ['etc/mpv.metainfo.xml'] ) + ctx.install_files(ctx.env.CONFDIR, ['etc/encoding-profiles.conf'] ) for size in '16x16 32x32 64x64 128x128'.split():