summaryrefslogtreecommitdiff
path: root/mpv/Pkgfile
blob: a6eb6a708a5bfb6c110b4f1fe00ae0310258dff5 (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.32.0
    9 release=1
   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.1)
   13 
   14 build() {
   15 	cd $name-$version
   16 
   17 	install -m0755 $SRC/waf-2.0.9 waf
   18 
   19 	[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
   20 	[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdnav'
   21 
   22 	/usr/bin/python3 waf configure ${PKGMK_MPV} \
   23 		--prefix=/usr \
   24 		--enable-libarchive \
   25 		--enable-libmpv-shared \
   26 		-j ${JOBS-1}
   27 
   28 	/usr/bin/python3 waf build
   29 	/usr/bin/python3 waf install --destdir=$PKG
   30 	rm -r $PKG/usr/share/doc
   31 
   32 	[ -e '/usr/bin/rst2man.py' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/mpv.1
   33 }

Generated by cgit