blob: 4a6dfcdf7abb6ef727c7ec9c281409b8dae1d7e2 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=mpv-build-git
pkgver=v0.25.0.87.g25a4d10c8e
pkgrel=1
pkgdesc="Video player based on MPlayer/mplayer2 (uses statically linked ffmpeg). (GIT version)"
arch=('i686' 'x86_64' )
depends=('desktop-file-utils'
'smbclient'
'libxv'
'libcdio-paranoia'
'openal'
'luajit'
'libssh'
'libcaca'
'rsound'
'libxss'
'libdvdnav'
'jack2'
'libbluray'
'libpulse'
'libbs2b'
'libgme'
'mesa'
'libxinerama'
'libxrandr'
'libxkbcommon'
'hicolor-icon-theme'
'sdl2'
'lcms2'
'libva'
'rubberband'
'uchardet'
'libarchive'
'libsoxr'
'v4l-utils'
'libvdpau'
'fribidi'
'netcdf'
)
license=('GPL2' 'GPL3')
url='http://mpv.io'
makedepends=('git'
'python-docutils'
'yasm'
'ladspa'
'fontconfig'
'fribidi'
)
optdepends=('youtube-dl: Another way to view youtuve videos with mpv'
'zsh-completions: Additional completion definitions for Zsh users'
'mpv-bash-completion-git: Additional completion definitions for Bash users'
)
provides=('mpv')
conflicts=('mpv')
options=('!emptydirs')
source=('git+https://github.com/mpv-player/mpv-build.git'
'git+https://github.com/mpv-player/mpv.git'
'ffmpeg::git+https://github.com/FFmpeg/FFmpeg.git'
'git+https://github.com/libass/libass.git'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
)
_enable_cuda=0
if [ -d /opt/cuda ]; then
makedepends+=('cuda')
_enable_cuda=1
fi
if [ -f /usr/lib/libvapoursynth.so ]; then
depends+=('vapoursynth')
fi
pkgver() {
cd mpv
echo "$(git describe --long --tags | tr - .)"
}
prepare() {
cd mpv-build
ln -s ../mpv
ln -s ../ffmpeg
ln -s ../libass
# Set ffmpeg/libass/mpv flags
_ffmpeg_options=(
'--disable-programs'
'--enable-nonfree'
'--enable-libssh'
'--enable-ladspa'
'--enable-libbs2b'
'--enable-libgme'
'--enable-netcdf'
'--enable-libsoxr'
)
_mpv_options=(
'--prefix=/usr'
'--confdir=/etc/mpv'
'--htmldir=/usr/share/doc/mpv/html'
'--disable-test'
'--disable-build-date'
'--enable-cdda'
'--enable-dvdnav'
'--enable-dvdread'
'--enable-libmpv-shared'
'--enable-openal'
'--enable-sdl2'
'--enable-zsh-comp'
'--enable-libarchive'
'--lua=luajit'
'--enable-libavdevice'
'--disable-vapoursynth-lazy'
'--enable-html-build'
)
if [ ${_enable_cuda} = "1" ]; then
_ffmpeg_cuda=(
'--enable-cuda'
'--enable-cuvid'
'--extra-cflags="-I/opt/cuda/include"'
)
_mpv_cuda=(
'--enable-cuda-hwaccel'
)
fi
echo ${_ffmpeg_options[@]} ${_ffmpeg_cuda[@]} > ffmpeg_options
echo ${_mpv_options[@]} ${_mpv_cuda[@]} > mpv_options
cd mpv
./bootstrap.py
}
build() {
cd mpv-build
./build
}
package() {
cd mpv-build
DESTDIR="${pkgdir}" ./install
install -Dm755 mpv/TOOLS/mpv_identify.sh "${pkgdir}/usr/bin/mpv-identify"
install -Dm755 mpv/TOOLS/idet.sh "${pkgdir}/usr/bin/mpv-idet"
install -Dm755 mpv/TOOLS/umpv "${pkgdir}/usr/bin/umpv"
install -Dm644 mpv/DOCS/encoding.rst "${pkgdir}/usr/share/doc/mpv/encoding.rst"
install -Dm644 mpv/DOCS/edl-mpv.rst "${pkgdir}/usr/share/doc/mpv/edl-mpv.rst"
install -Dm644 mpv/DOCS/client-api-changes.rst "${pkgdir}/usr/share/doc/mpv/client-api-changes.rst"
install -Dm644 mpv/DOCS/contribute.md "${pkgdir}/usr/share/doc/mpv/contribute.md"
sed 's|/usr/local/etc/mpv.conf|/etc/mpv.conf|g' -i "${pkgdir}/usr/share/doc/mpv/mpv.conf"
(cd mpv/TOOLS/lua; for i in $(find . -type f); do install -Dm644 "${i}" "${pkgdir}/usr/share/mpv/scripts/${i}"; done)
}
|