summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Zaitsev <vitaly@easycoding.org>2022-09-06 20:17:36 +0200
committersfan5 <sfan5@live.de>2022-09-09 19:28:26 +0200
commitca9b00145ceeadad36edeac7f87aa6e721b7959b (patch)
tree028590e432b422ae2f912857585883107815a9ea
parenta7098a4336c4af74e3f6278f3f15be676e7e5191 (diff)
downloadmpv-ca9b00145ceeadad36edeac7f87aa6e721b7959b.tar.bz2
mpv-ca9b00145ceeadad36edeac7f87aa6e721b7959b.tar.xz
mpv.metainfo.xml: add XDG appstream metadata manifest
-rw-r--r--etc/mpv.metainfo.xml29
-rw-r--r--meson.build1
-rw-r--r--wscript_build.py4
3 files changed, 34 insertions, 0 deletions
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 @@
+<?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>
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():