# Maintainer: Christian Hesse # Maintainer: Robin Candau # Contributor: Bartłomiej Piotrowski # Contributor: Eivind Uggedal pkgname=mpv #epoch=1 pkgver=0.36.0 #_tag='3996724d3fa1c51cc7998f3de2e22e2c99e6d270' # git rev-parse v${pkgver} pkgrel=101 pkgdesc='a free, open source, and cross-platform media player' arch=('x86_64' aarch64) # We link against libraries that are licensed GPLv3 explicitly, so our # package is GPLv3 only as well. (Is this still correct?) license=('GPL3') url='https://mpv.io/' depends=('libasound.so' 'desktop-file-utils' 'ffmpeg' 'libavcodec.so' 'libavdevice.so' 'libavfilter.so' 'libavformat.so' 'libavutil.so' 'libswresample.so' 'libswscale.so' 'glibc' 'hicolor-icon-theme' 'lcms2' 'liblcms2.so' 'libass' 'libass.so' 'libbluray' 'libbluray.so' 'libcdio' 'libcdio-paranoia' 'libdrm' 'libdvdnav' 'libdvdread' 'libegl' 'libgl' 'libglvnd' 'libjpeg' 'libjpeg.so' 'libplacebo' 'libplacebo.so' 'libva' 'libva.so' 'libva-drm.so' 'libva-wayland.so' 'libvdpau' 'libx11' 'libxkbcommon' 'libxkbcommon.so' 'libxpresent' 'libxrandr' 'libxss' 'luajit' 'mesa' 'libpipewire' 'rubberband' 'librubberband.so' 'shaderc' 'libshaderc_shared.so' 'uchardet' 'vulkan-icd-loader' 'wayland' 'zlib') makedepends=('git' 'meson' 'python-docutils' 'ladspa' 'wayland-protocols') #'ffnvcodec-headers' 'vulkan-headers') optdepends=('yt-dlp: for video-sharing websites playback') provides=('libmpv.so') options=('!emptydirs') validpgpkeys=('145077D82501AA20152CACCE8D769208D5E31419') # sfan5 #source=("git+https://github.com/mpv-player/mpv.git#tag=${_tag}?signed") source=("git+https://github.com/mpv-player/mpv.git#tag=v${pkgver}?signed") sha256sums=('SKIP') build() { local _meson_options=( --auto-features auto -Dlibmpv=true -Dcaca=disabled -Dcdda=disabled -Ddvbin=disabled -Ddvdnav=disabled -Dlibarchive=disabled -Djavascript=disabled -Dvulkan=disabled -Djack=disabled -Dx11=disabled -Dalsa=disabled -Dcoreaudio=disabled ) arch-meson "${pkgname}" build "${_meson_options[@]}" meson compile -C build } check() { meson test -C build } package() { meson install -C build --destdir "${pkgdir}" # delete private entries only required for static linking sed -i -e '/Requires.private/d' -e '/Libs.private/d' "${pkgdir}"/usr/lib/pkgconfig/mpv.pc install -m0644 "${pkgname}"/DOCS/{encoding.rst,tech-overview.txt} \ "${pkgdir}"/usr/share/doc/mpv install -m0644 "${pkgname}"/TOOLS/lua/* \ -D -t "${pkgdir}"/usr/share/mpv/scripts }