mpv.metainfo.xml: add XDG appstream metadata manifest

This commit is contained in:
Vitaly Zaitsev 2022-09-06 20:17:36 +02:00 committed by sfan5
parent a7098a4336
commit ca9b00145c
3 changed files with 34 additions and 0 deletions

29
etc/mpv.metainfo.xml Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.mpv.mpv</id>
<name>mpv</name>
<summary>A free, open source, and cross-platform media player</summary>
<description>
<p>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.</p>
<p>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.</p>
<p>While mpv strives for minimalism and provides no real GUI, it has a small controller on top of the video for basic control.</p>
<p>mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding can be enabled at runtime on demand.</p>
<p>Powerful scripting capabilities can make the player do almost anything. There is a large selection of user scripts on the wiki.</p>
<p>A straightforward C API was designed from the ground up to make mpv usable as a library and facilitate easy integration into other applications.</p>
</description>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0-or-later AND LGPL-2.0-or-later</project_license>
<developer_name>mpv.io</developer_name>
<launchable type="desktop-id">mpv.desktop</launchable>
<content_rating type="oars-1.1" />
<screenshots>
<screenshot type="default">
<image>https://mpv.io/images/mpv-screenshot-34cd36ae.jpg</image>
<caption>Main window</caption>
</screenshot>
</screenshots>
<url type="homepage">https://mpv.io/</url>
<url type="bugtracker">https://github.com/mpv-player/mpv/issues</url>
<url type="faq">https://github.com/mpv-player/mpv/wiki/FAQ</url>
<url type="help">https://mpv.io/manual/stable</url>
</component>

View File

@ -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']

View File

@ -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():