summaryrefslogtreecommitdiff
path: root/mpv/Pkgfile
blob: 54343bbdf0c2d1f998bed83af1b195c305315544 (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: docutils ffmpeg libass util-linux xorg-libxscrnsaver
    5 # Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband vulkan-loader
    6 
    7 name=mpv
    8 version=0.28.2
    9 release=2
   10 source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
   16 	[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
   17 
   18 	./bootstrap.py
   19 	./waf configure ${PKGMK_MPV} \
   20 		--prefix=/usr \
   21 		--enable-libarchive \
   22 		--enable-libmpv-shared \
   23 		-j ${JOBS-1}
   24 
   25 	./waf build
   26 	./waf install --destdir=$PKG
   27 	rm -r $PKG/usr/share/doc
   28 }

Generated by cgit