summaryrefslogtreecommitdiff
path: root/mpv/Pkgfile
blob: 60fef49d2ae5b6799b146412ebf04100e9a38540 (plain)
    1 # Description: General Purpose video player based on MPlayer and mplayer2
    2 # URL:         https://mpv.io/
    3 # Maintainer:  Svyatoslav Mishyn, svyatoslav dot mishyn at gmail dot com
    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 	printf "\e[031mNote: for optical audio/dvd/blu-ray playback you need to:
   20 	prt-get depinst libcdio-paranoia libdvdnav libbluray, respectively.\033[0m\n"
   21 	sleep 10
   22 
   23 	# CVE-2018-6360 fix
   24 	patch -p1 -i $SRC/09_ytdl-hook-whitelist-protocols.patch
   25 
   26 	./bootstrap.py
   27 	./waf configure ${PKGMK_MPV} \
   28 		--prefix=/usr \
   29 		--enable-libarchive \
   30 		--enable-libmpv-shared
   31 
   32 	./waf build
   33 	./waf install --destdir=$PKG
   34 	rm -r $PKG/usr/share/doc
   35 }

Generated by cgit