diff options
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 1 deletions
@@ -53,6 +53,7 @@ pkgbase = mpv-build-git depends = v4l-utils depends = vulkan-icd-loader depends = vapoursynth + depends = avisynthplus-git optdepends = nvidia-utils: for hardware accelerated video decoding with CUDA optdepends = youtube-dl: Another way to view youtuve videos with mpv optdepends = zsh-completions: Additional completion definitions for Zsh users @@ -82,6 +82,9 @@ backup=('etc/mpv/encoding-profiles.conf') if [ -f /usr/lib/libvapoursynth.so ]; then depends+=('vapoursynth') fi +if [ -f /usr/lib/libavisynth.so.*.*.* ]; then + depends+=('avisynthplus-git') +fi pkgver() { cd mpv @@ -108,8 +111,10 @@ prepare() { '--enable-libpulse' '--enable-nonfree' '--enable-cuda' - '--enable-avisynth' ) +if [ -f /usr/lib/libavisynth.so.*.*.* ]; then + _ffmpeg_options+=('--enable-avisynth') +fi _mpv_options=( '--prefix=/usr' '--confdir=/etc/mpv' |