# Template file for 'mpv' pkgname=mpv version=0.36.0 revision=2 build_style=meson configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled -Dlibmpv=true -Dcplugins=enabled $(vopt_feature alsa alsa) $(vopt_feature caca caca) $(vopt_feature jack jack) $(vopt_feature lcms lcms2) $(vopt_feature lua lua) $(vopt_feature openal openal) $(vopt_feature pulseaudio pulse) $(vopt_feature sdl2 sdl2) $(vopt_feature vapoursynth vapoursynth) $(vopt_feature vdpau vdpau) $(vopt_feature vulkan vulkan) $(vopt_feature vulkan shaderc) $(vopt_feature wayland wayland) $(vopt_feature x11 x11) $(vopt_feature pipewire pipewire) $(vopt_feature sndio sndio)" hostmakedepends="pkg-config python3-docutils $(vopt_if wayland wayland-devel)" makedepends="MesaLib-devel ffmpeg-devel harfbuzz-devel libXv-devel libass-devel libbluray-devel libcdio-paranoia-devel libdvdnav-devel libuuid-devel libva-devel rubberband-devel uchardet-devel libarchive-devel $(vopt_if alsa alsa-lib-devel) $(vopt_if caca libcaca-devel) $(vopt_if jack jack-devel) $(vopt_if lcms lcms2-devel) $(vopt_if lua lua52-devel) $(vopt_if openal libopenal-devel) $(vopt_if pulseaudio pulseaudio-devel) $(vopt_if pipewire pipewire-devel) $(vopt_if sdl2 SDL2-devel) $(vopt_if vapoursynth vapoursynth-devel) $(vopt_if vdpau libvdpau-devel) $(vopt_if sndio sndio-devel) $(vopt_if vulkan "Vulkan-Headers vulkan-loader shaderc libplacebo-devel") $(vopt_if wayland "wayland-devel wayland-protocols libxkbcommon-devel") $(vopt_if x11 "libXScrnSaver-devel libXinerama-devel libXrandr-devel libXpresent-devel")" depends="desktop-file-utils hicolor-icon-theme" short_desc="Video player based on MPlayer/mplayer2" maintainer="travankor " license="GPL-2.0-or-later" homepage="https://mpv.io" changelog="https://github.com/mpv-player/mpv/releases" distfiles="https://github.com/mpv-player/mpv/archive/v${version}.tar.gz" checksum=29abc44f8ebee013bb2f9fe14d80b30db19b534c679056e4851ceadf5a5e8bf6 build_options="alsa caca jack lcms lua openal pulseaudio pipewire sdl2 sndio vapoursynth vdpau vulkan wayland x11" build_options_default="alsa jack lcms lua pulseaudio pipewire vdpau vulkan sndio wayland x11" desc_option_caca="Enable support for libcaca video output" desc_option_lcms="Enable support for LittleCMS 2 engine" desc_option_openal="Enable support for OpenAL audio output" vopt_conflict sdl2 wayland mpv-devel_package() { depends="${sourcepkg}>=${version}_${revision} ${makedepends}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }