summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryourname2019-07-15 19:34:39 -0400
committeryourname2019-07-15 19:34:39 -0400
commite05d10584a926b0c096be099e2638ef37c0dc8f0 (patch)
treeecf30325d492c82941a792c58c897ff0753643f0
downloadaur-e05d10584a926b0c096be099e2638ef37c0dc8f0.tar.gz
initial commit
-rw-r--r--.SRCINFO102
-rw-r--r--PKGBUILD216
-rwxr-xr-xfind-deps.py48
-rw-r--r--mpv-CUDA.desktop32
-rwxr-xr-xmpv-MVtools.desktop32
-rw-r--r--mpv-SVP.desktop33
-rw-r--r--mpv-hq.desktop31
-rw-r--r--mpv-lq.desktop31
-rw-r--r--mpv-mq.desktop31
-rw-r--r--mpv-uq.desktop31
-rw-r--r--mpv.install14
11 files changed, 601 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..95479ebdc18
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,102 @@
+pkgbase = mpv-ahjolinna
+ pkgdesc = MPV using ahjolinna's personal pre-made conf build
+ pkgver = 0.29.1
+ pkgrel = 1
+ url = http://mpv.io
+ arch = x86_64
+ license = GPL
+ makedepends = vulkan-headers
+ makedepends = mesa
+ makedepends = python-docutils
+ makedepends = ladspa
+ makedepends = x265
+ makedepends = openal
+ makedepends = jack
+ makedepends = unzip
+ makedepends = samba
+ makedepends = acpitool
+ makedepends = inxi
+ makedepends = git
+ makedepends = vapoursynth
+ makedepends = libvdpau
+ makedepends = libva
+ makedepends = streamlink
+ makedepends = cuda
+ makedepends = ffnvcodec-headers
+ makedepends = youtube-dl
+ makedepends = ffnvcodec-headers
+ depends = lcms2
+ depends = libcdio-paranoia
+ depends = libgl
+ depends = libxss
+ depends = libxinerama
+ depends = libxv
+ depends = libxkbcommon
+ depends = libva
+ depends = wayland
+ depends = libcaca
+ depends = libplacebo
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+ depends = lua52
+ depends = libdvdnav
+ depends = rsound
+ depends = libxrandr
+ depends = jack
+ depends = rubberband
+ depends = uchardet
+ depends = libarchive
+ depends = smbclient
+ depends = zlib
+ depends = sndio
+ depends = openal
+ depends = vulkan-icd-loader
+ depends = shaderc
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+ depends = ffmpeg-full-git
+ depends = mujs
+ depends = vapoursynth-git
+ optdepends = youtube-dl: Another way to view youtuve videos with mpv
+ optdepends = zsh-completions: Additional completion definitions for Zsh users
+ optdepends = livestreamer: to watch live video streams (twitch.tv)
+ optdepends = vapoursynth-plugin-mvtools: Realtime motion interpolating playback in mpv
+ optdepends = acpitool: for battery detection
+ optdepends = inxi: HIDPI-detection
+ optdepends = svp: SmoothVideo Project
+ optdepends = adobe-source-sans-pro-fonts: Font as shown in the conf
+ optdepends = cuda: for CUVID hardware-acceleration for NVIDIA users
+ provides = mpv
+ provides = mpv-git
+ conflicts = mpv
+ conflicts = mpv-vapoursynth
+ conflicts = mpv-ahjolinna-build-git
+ conflicts = mpv-build-git
+ conflicts = mpv-ahjolinna
+ options = !emptydirs
+ source = git+https://github.com/mpv-player/mpv#tag=v0.29.1
+ source = git+https://github.com/ahjolinna/mpv-conf
+ source = find-deps.py
+ source = mpv-hq.desktop
+ source = mpv-lq.desktop
+ source = mpv-mq.desktop
+ source = mpv-MVtools.desktop
+ source = mpv-SVP.desktop
+ source = mpv-CUDA.desktop
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = ce974e160347202e0dc63f6a7a5a89e52d2cc1db2d000c661fddb9dc1d007c02
+ sha256sums = ddd18dbccdaa4513586cb97299e88564e3289940f25d7ebe762c4482fbad3809
+ sha256sums = e02f7b07653ea4ce9745b9f699954f5a4eafd416ada5a5d032c7dd7294921f90
+ sha256sums = 8cf41f23572417836084209fce343f779e72dea9688dc84e23e8eb913d002d5f
+ sha256sums = 9a7f7d78a71c5492709abfb8f4ad598fa02867e71b5645bb639850163264762b
+ sha256sums = 6e1d8057524f69f204f0f0468e7d4f8f6b41a6d22ac1e4bdf3bc1e2efa0e0284
+ sha256sums = b703510f6e1f36d3f00008c282c7fef52057aa5703b412a7b750fb05c3a6a2e5
+
+pkgname = mpv-ahjolinna
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f98d0fab41b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,216 @@
+# Maintainer: ahjolinna <@yahoo.com>
+# Maintainer: Solomon Choina <shlomochoina@gmail.com>
+
+# WARNING: The configure script will automatically enable any optional
+# features it finds support for on your system. If you want to avoid
+# linking against something you have installed, you'll have to disable
+# it in the configure below. The package() script will attempt to
+# update the dependencies based on dynamic libraries when packaging..
+pkgname=mpv-ahjolinna
+_gitname=mpv
+pkgver=0.29.1
+pkgrel=1
+pkgdesc="MPV using ahjolinna's personal pre-made conf build"
+arch=('x86_64')
+license=('GPL')
+url='http://mpv.io'
+_undetected_depends=('desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
+depends=(
+# official repositories:
+'lcms2' 'libcdio-paranoia' 'libgl' 'libxss'
+'libxinerama' 'libxv' 'libxkbcommon' 'libva'
+ 'wayland' 'libcaca' 'libplacebo' 'desktop-file-utils'
+ 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav' 'rsound'
+'libxrandr' 'jack' 'rubberband' 'uchardet' 'libarchive' 'smbclient'
+'zlib' 'sndio' 'openal' 'vulkan-icd-loader' 'shaderc' "${_undetected_depends[@]}"
+
+# AUR:
+'ffmpeg-full-git' 'mujs' 'vapoursynth-git'
+)
+
+optdepends=('youtube-dl: Another way to view youtuve videos with mpv'
+ 'zsh-completions: Additional completion definitions for Zsh users'
+ 'livestreamer: to watch live video streams (twitch.tv)'
+ 'vapoursynth-plugin-mvtools: Realtime motion interpolating playback in mpv'
+ 'acpitool: for battery detection'
+ 'inxi: HIDPI-detection'
+ 'svp: SmoothVideo Project'
+ 'adobe-source-sans-pro-fonts: Font as shown in the conf'
+ )
+
+makedepends=('vulkan-headers' 'mesa' 'python-docutils'
+ 'ladspa' 'x265' 'openal' 'jack' 'unzip'
+ 'samba' 'acpitool' 'inxi' 'git' 'vapoursynth'
+ 'libvdpau' 'libva' 'streamlink' 'cuda'
+ 'ffnvcodec-headers' 'youtube-dl' 'ffnvcodec-headers')
+optdepends+=('cuda: for CUVID hardware-acceleration for NVIDIA users')
+
+provides=('mpv' 'mpv-git')
+conflicts=('mpv' 'mpv-vapoursynth' 'mpv-ahjolinna-build-git' 'mpv-build-git' 'mpv-ahjolinna' )
+options=('!emptydirs')
+source=(git+https://github.com/mpv-player/$_gitname#tag=v$pkgver
+ 'git+https://github.com/ahjolinna/mpv-conf'
+ 'find-deps.py'
+ 'mpv-hq.desktop'
+ 'mpv-lq.desktop'
+ 'mpv-mq.desktop'
+ 'mpv-MVtools.desktop'
+ 'mpv-SVP.desktop'
+ 'mpv-CUDA.desktop')
+
+sha256sums=('SKIP'
+ 'SKIP'
+ 'ce974e160347202e0dc63f6a7a5a89e52d2cc1db2d000c661fddb9dc1d007c02'
+ 'ddd18dbccdaa4513586cb97299e88564e3289940f25d7ebe762c4482fbad3809'
+ 'e02f7b07653ea4ce9745b9f699954f5a4eafd416ada5a5d032c7dd7294921f90'
+ '8cf41f23572417836084209fce343f779e72dea9688dc84e23e8eb913d002d5f'
+ '9a7f7d78a71c5492709abfb8f4ad598fa02867e71b5645bb639850163264762b'
+ '6e1d8057524f69f204f0f0468e7d4f8f6b41a6d22ac1e4bdf3bc1e2efa0e0284'
+ 'b703510f6e1f36d3f00008c282c7fef52057aa5703b412a7b750fb05c3a6a2e5')
+
+prepare() {
+ cd "${srcdir}/mpv"
+./bootstrap.py
+
+}
+
+build() {
+ cd "${srcdir}/$_gitname"
+ ./waf configure \
+ --color='yes' \
+ --prefix='/usr' \
+ --progress \
+ --confdir='/etc/mpv' \
+ \
+ --disable-lgpl \
+ --enable-libmpv-shared \
+ --disable-libmpv-static \
+ --disable-static-build \
+ --disable-debug-build \
+ \
+ --enable-manpage-build \
+ --disable-html-build \
+ --disable-pdf-build \
+ \
+ --enable-cplugins \
+ --enable-zsh-comp \
+ --disable-test \
+ --disable-clang-database \
+ \
+ --disable-android \
+ --disable-uwp \
+ --disable-win32-internal-pthreads \
+ --enable-iconv \
+ --enable-libsmbclient \
+ --enable-lua \
+ --enable-javascript \
+ --enable-libass \
+ --enable-libass-osd \
+ --enable-zlib \
+ --enable-uchardet \
+ --enable-rubberband \
+ --enable-lcms2 \
+ --enable-vapoursynth \
+ --enable-libarchive \
+ --enable-libavdevice \
+ --lua='52arch' \
+ \
+ --enable-sdl2 \
+ --enable-oss-audio \
+ --enable-rsound \
+ --enable-sndio \
+ --enable-pulse \
+ --enable-jack \
+ --enable-openal \
+ --disable-opensles \
+ --enable-alsa \
+ --disable-coreaudio \
+ --disable-audiounit \
+ --disable-wasapi \
+ \
+ --disable-cocoa \
+ --enable-drm \
+ --enable-drmprime \
+ --enable-gbm \
+ --enable-wayland-scanner \
+ --enable-wayland-protocols \
+ --enable-wayland \
+ --enable-x11 \
+ --enable-xv \
+ --disable-gl-cocoa \
+ --enable-gl-x11 \
+ --enable-egl-x11 \
+ --enable-egl-drm \
+ --enable-gl-wayland \
+ --disable-gl-win32 \
+ --disable-gl-dxinterop \
+ --disable-egl-angle \
+ --disable-egl-angle-lib \
+ --disable-egl-angle-win32 \
+ --enable-vdpau \
+ --enable-vdpau-gl-x11 \
+ --enable-vaapi \
+ --enable-vaapi-x11 \
+ --enable-vaapi-wayland \
+ --enable-vaapi-drm \
+ --enable-vaapi-glx \
+ --enable-vaapi-x-egl \
+ --enable-caca \
+ --enable-jpeg \
+ --disable-direct3d \
+ --enable-shaderc \
+ --disable-d3d11 \
+ --disable-rpi \
+ --disable-ios-gl \
+ --enable-plain-gl \
+ --enable-gl \
+ --enable-vulkan \
+ \
+ --disable-videotoolbox-gl \
+ --disable-d3d-hwaccel \
+ --disable-d3d9-hwaccel \
+ --disable-gl-dxinterop-d3d9 \
+ \
+ --enable-dvbin \
+ \
+ --disable-apple-remote \
+ --disable-macos-touchbar \
+ --disable-macos-cocoa-cb
+
+ ./waf build
+}
+package() {
+ cd "$srcdir/$_gitname"
+ ./waf install --destdir="${pkgdir}"
+
+
+ # install the .desktop files
+ install -Dm644 "${srcdir}/mpv-lq.desktop" "${pkgdir}/usr/share/applications/mpv-lq.desktop"
+ install -Dm644 "${srcdir}/mpv-mq.desktop" "${pkgdir}/usr/share/applications/mpv-mq.desktop"
+ install -Dm644 "${srcdir}/mpv-hq.desktop" "${pkgdir}/usr/share/applications/mpv-hq.desktop"
+ install -Dm644 "${srcdir}/mpv-MVtools.desktop" "${pkgdir}/usr/share/applications/mpv-MVtools.desktop"
+ install -Dm644 "${srcdir}/mpv-CUDA.desktop" "${pkgdir}/usr/share/applications/mpv-CUDA.desktop"
+ install -Dm644 "${srcdir}/mpv-SVP.desktop" "${pkgdir}/usr/share/applications/mpv-SVP.desktop"
+
+
+ # install BT.709 ICC profiles (https://github.com/mpv-player/mpv/issues/534#issuecomment-35823203)
+
+ cd ${srcdir}/mpv-conf/PKGBUILD
+ unzip BT.709_Profiles.zip
+ install -Dm755 "BT.709_Profiles/BT.709.gamma.1.95.icc" "${pkgdir}/usr/share/color/icc/BT.709_Profiles/BT.709.gamma.1.95.icc"
+ install -Dm755 "BT.709_Profiles/BT.709.gamma.1.95.icc" "${pkgdir}/usr/share/color/icc/BT.709_Profiles/BT.709.icc"
+ install -Dm755 "BT.709_Profiles/BT.709.gamma.1.95.icc" "${pkgdir}/usr/share/color/icc/BT.709_Profiles/BT.709.linear.icc"
+
+ #install ahjolinna "config-build" files
+ cp -R ${srcdir}/mpv-conf/mpv/etc/* ${pkgdir}/etc/mpv
+ install -d "${pkgdir}/etc/mpv/"
+
+cp $srcdir/$_gitname/etc/encoding-profiles.conf ${pkgdir}/etc/mpv
+
+ # Update dependencies automatically based on dynamic libraries
+ _detected_depends=($("$srcdir"/find-deps.py "$pkgdir"/usr/{bin/mpv,lib/libmpv.so}))
+
+ msg 'Auto-detected dependencies:'
+ echo "${_detected_depends[@]}" | fold -s -w 79 | sed 's/^/ /'
+ depends=("${_detected_depends[@]}" "${_undetected_depends[@]}")
+}
diff --git a/find-deps.py b/find-deps.py
new file mode 100755
index 00000000000..d6761f0a40f
--- /dev/null
+++ b/find-deps.py
@@ -0,0 +1,48 @@
+#!/usr/bin/env python3
+
+"""
+Usage: find-deps.py <binary> [<binary> ...]
+
+Finds (pacman/ALPM) dependencies for a binary or set of binaries based
+on dynamically linked libraries.
+
+"""
+
+import sys
+import os
+import subprocess
+import re
+
+def subprocess_get_lines(args, fail_okay=False):
+ try:
+ output = subprocess.check_output(args)
+ except subprocess.CalledProcessError as e:
+ if fail_okay:
+ output = e.output
+ else:
+ raise
+ return output.decode().splitlines()
+
+# Get the filenames of the libs we need
+del os.environ['LD_LIBRARY_PATH'], os.environ['LD_PRELOAD'] # otherwise fakeroot will interfere
+ldd_output = subprocess_get_lines(['ldd'] + sys.argv[1:])
+regex = re.compile(r' => (.*) \(0x[0-9a-f]+\)$')
+libs = set(match.group(1) for match in map(regex.search, ldd_output) if match)
+
+# Figure out which packages own them
+deps = set(subprocess_get_lines(
+ ['pacman', '--query', '--owns', '--quiet'] + list(libs),
+ fail_okay=True
+))
+
+# Remove redundant dependencies
+needed = set(deps)
+for pkg in deps:
+ if pkg not in needed:
+ continue # this subtree has already been pruned
+ redundant = subprocess_get_lines(
+ ['pactree', '--unique', pkg]
+ )[1:] # first line is pkg itself
+ needed.difference_update(redundant)
+
+print(' '.join(sorted(needed)))
diff --git a/mpv-CUDA.desktop b/mpv-CUDA.desktop
new file mode 100644
index 00000000000..5556a463aa7
--- /dev/null
+++ b/mpv-CUDA.desktop
@@ -0,0 +1,32 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Type=Application
+Name=mpv(+CUDA) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (+CUDA)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --player-operation-mode=pseudo-gui --script-opts=ao-level=cuvid -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv-MVtools.desktop b/mpv-MVtools.desktop
new file mode 100755
index 00000000000..31f4a9c83af
--- /dev/null
+++ b/mpv-MVtools.desktop
@@ -0,0 +1,32 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Type=Application
+Name=mpv(MV-tools) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (MVtools)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --profile=pseudo-gui --script-opts=ao-level=medium-quality --vf=format=yuv420p,vapoursynth=/etc/mpv/filters/motioninterpolation.vpy:2:8 -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv-SVP.desktop b/mpv-SVP.desktop
new file mode 100644
index 00000000000..bb5b5f692d3
--- /dev/null
+++ b/mpv-SVP.desktop
@@ -0,0 +1,33 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Type=Application
+Name=mpv(+SVP) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (+SVP)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --player-operation-mode=pseudo-gui --script-opts=ao-level=SmoothVideo -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
+
diff --git a/mpv-hq.desktop b/mpv-hq.desktop
new file mode 100644
index 00000000000..02c85b5cf47
--- /dev/null
+++ b/mpv-hq.desktop
@@ -0,0 +1,31 @@
+[Desktop Entry]
+Type=Application
+Name=mpv(hq) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (hq)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --profile=pseudo-gui --script-opts=ao-level=high-quality -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv-lq.desktop b/mpv-lq.desktop
new file mode 100644
index 00000000000..ea584afeb99
--- /dev/null
+++ b/mpv-lq.desktop
@@ -0,0 +1,31 @@
+[Desktop Entry]
+Type=Application
+Name=mpv(lq) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (lq)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --profile=pseudo-gui --script-opts=ao-level=low-quality -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv-mq.desktop b/mpv-mq.desktop
new file mode 100644
index 00000000000..c233dd23b91
--- /dev/null
+++ b/mpv-mq.desktop
@@ -0,0 +1,31 @@
+[Desktop Entry]
+Type=Application
+Name=mpv(mq) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (mq)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --profile=pseudo-gui --script-opts=ao-level=medium-quality -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv-uq.desktop b/mpv-uq.desktop
new file mode 100644
index 00000000000..ff764489732
--- /dev/null
+++ b/mpv-uq.desktop
@@ -0,0 +1,31 @@
+[Desktop Entry]
+Type=Application
+Name=mpv(uq) Media Player
+Name[ca]=Reproductor multimèdia mpv
+Name[cs]=mpv přehrávač
+Name[pl]=Odtwarzacz mpv
+Name[ru]=Проигрыватель mpv
+Name[zh-CN]=mpv 媒体播放器
+Name[zh-TW]=mpv 媒體播放器
+GenericName=Multimedia player (uq)
+GenericName[cs]=Multimediální přehrávač
+GenericName[zh-CN]=多媒体播放器
+GenericName[zh-TW]=多媒體播放器
+Comment=Play movies and songs
+Comment[ca]=Reproduïu vídeos i cançons
+Comment[cs]=Přehrává filmy a hudbu
+Comment[de]=Filme und Musik abspielen
+Comment[es]=Reproduzca vídeos y canciones
+Comment[fr]=Lecteur multimédia
+Comment[it]=Lettore multimediale
+Comment[pl]=Odtwarzaj filmy i muzykę
+Comment[ru]=Воспроизвести фильмы и музыку
+Comment[zh-CN]=播放电影和歌曲
+Comment[zh-TW]=播放電影和歌曲
+Icon=mpv
+TryExec=mpv
+Exec=mpv --profile=pseudo-gui --script-opts=ao-level=ultra-quality -- %U
+Terminal=false
+Categories=AudioVideo;Audio;Video;Player;TV;
+MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-flv;video/x-theora;video/x-matroska;video/webm;audio/x-flac;audio/x-vorbis+ogg;video/x-ogm+ogg;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;video/mp2t;audio/flac;audio/mp4;
+X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb
diff --git a/mpv.install b/mpv.install
new file mode 100644
index 00000000000..813fd2a22a2
--- /dev/null
+++ b/mpv.install
@@ -0,0 +1,14 @@
+pre_install() {
+ cat <<'EOF'
+NOTE: mpv has several optional features that are automatically enabled if the
+required libraries are present at configure time. This package does not include
+any of the optional features as dependencies by default (but it does add depends
+for whatever is linked against when building the package). If you want to use
+any optional features that require libraries you don't currently have installed,
+please install the relevant libraries and rebuild the package. A frequently
+desired optional feature is Lua support, which is necessary for the on-screen
+controller "GUI", youtube-dl integration, and other extension scripts. Lua
+support can be provided by lua52 or luajit.
+EOF
+}
+