blob: 8fbe91f6a781c32f9435782b36d9eca4e85eea42 (
plain)
1 # Description: General Purpose video player based on MPlayer and mplayer2
2 # URL: https://mpv.io/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: alsa-lib docutils ffmpeg libass mesa3d
5 # Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau
6
7 name=mpv
8 version=0.27.0
9 release=2
10 source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz \
11 09_ytdl-hook-whitelist-protocols.patch)
12
13 build() {
14 cd $name-$version
15
16 [ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
17 [ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
18
19 # CVE-2018-6360 fix
20 patch -p1 -i $SRC/09_ytdl-hook-whitelist-protocols.patch
21
22 ./bootstrap.py
23 ./waf configure ${PKGMK_MPV} \
24 --prefix=/usr \
25 --enable-libarchive \
26 --enable-libmpv-shared
27
28 ./waf build
29 ./waf install --destdir=$PKG
30 rm -r $PKG/usr/share/doc
31 }
|