blob: e7ed3fe1d4252e730b9b6ca2bc5988c63520e2ac (
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: ffmpeg libass libplacebo util-linux xorg-libxscrnsaver
5 # Optional: docutils youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband
6
7 name=mpv
8 version=0.33.0
9 release=2
10 source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz
11 https://waf.io/waf-2.0.9
12 mpv-libplacebo-3.104.0-api-change.patch
13 mpv.1)
14
15 build() {
16 cd $name-$version
17
18 patch -p1 -i $SRC/mpv-libplacebo-3.104.0-api-change.patch
19
20 install -m0755 $SRC/waf-2.0.9 waf
21
22 [[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ]] && PKGMK_MPV+=' --enable-cdda'
23 [[ -e '/usr/lib/pkgconfig/dvdnav.pc' ]] && PKGMK_MPV+=' --enable-dvdnav'
24
25 /usr/bin/python3 waf configure ${PKGMK_MPV} \
26 --prefix=/usr \
27 --enable-libarchive \
28 --enable-libmpv-shared \
29 -j ${JOBS-1}
30
31 /usr/bin/python3 waf build
32 /usr/bin/python3 waf install --destdir=$PKG
33 rm -r $PKG/usr/share/doc
34
35 [ -e '/usr/bin/rst2man.py' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/mpv.1
36 }
|