contrib/mpv/Pkgfile
2018-02-05 20:49:44 +02:00

36 lines
1.1 KiB
Plaintext

# Description: General Purpose video player based on MPlayer and mplayer2
# URL: https://mpv.io/
# Maintainer: Svyatoslav Mishyn, svyatoslav dot mishyn at gmail dot com
# Depends on: alsa-lib docutils ffmpeg libass mesa3d
# Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau
name=mpv
version=0.27.0
release=2
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz \
09_ytdl-hook-whitelist-protocols.patch)
build() {
cd $name-$version
[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
printf "\e[031mNote: for optical audio/dvd/blu-ray playback you need to:
prt-get depinst libcdio-paranoia libdvdnav libbluray, respectively.\033[0m\n"
sleep 10
# CVE-2018-6360 fix
patch -p1 -i $SRC/09_ytdl-hook-whitelist-protocols.patch
./bootstrap.py
./waf configure ${PKGMK_MPV} \
--prefix=/usr \
--enable-libarchive \
--enable-libmpv-shared
./waf build
./waf install --destdir=$PKG
rm -r $PKG/usr/share/doc
}