blob: e9d27f8247e7529014e316cc92788dd40f030f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer: Christian Hesse <mail@eworm.de>
# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Eivind Uggedal <eivind@uggedal.com>
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 <sfan5@live.de>
#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
}
|