2013-08-19 20:26:13 +02:00
|
|
|
# Description: General Purpose video player based on MPlayer and mplayer2
|
2018-02-05 19:49:44 +01:00
|
|
|
# URL: https://mpv.io/
|
2017-11-26 21:12:00 +01:00
|
|
|
# Maintainer: Svyatoslav Mishyn, svyatoslav dot mishyn at gmail dot com
|
2017-06-18 04:23:09 +02:00
|
|
|
# Depends on: alsa-lib docutils ffmpeg libass mesa3d
|
2018-02-05 19:49:44 +01:00
|
|
|
# Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau
|
2013-08-19 20:26:13 +02:00
|
|
|
|
|
|
|
name=mpv
|
2017-09-28 17:16:35 +02:00
|
|
|
version=0.27.0
|
2018-02-05 19:49:44 +01:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz \
|
|
|
|
09_ytdl-hook-whitelist-protocols.patch)
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2016-06-10 11:02:55 +02:00
|
|
|
build() {
|
2013-08-25 14:40:25 +02:00
|
|
|
cd $name-$version
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2017-07-23 22:01:42 +02:00
|
|
|
[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
|
|
|
|
[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
|
2017-06-18 04:23:09 +02:00
|
|
|
|
2017-07-23 22:01:42 +02:00
|
|
|
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
|
2017-06-18 04:23:09 +02:00
|
|
|
|
2018-02-05 19:49:44 +01:00
|
|
|
# CVE-2018-6360 fix
|
|
|
|
patch -p1 -i $SRC/09_ytdl-hook-whitelist-protocols.patch
|
|
|
|
|
2015-03-23 13:15:23 +01:00
|
|
|
./bootstrap.py
|
2017-06-18 04:23:09 +02:00
|
|
|
./waf configure ${PKGMK_MPV} \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-libarchive \
|
|
|
|
--enable-libmpv-shared
|
2016-06-10 10:50:46 +02:00
|
|
|
|
2015-03-23 13:15:23 +01:00
|
|
|
./waf build
|
|
|
|
./waf install --destdir=$PKG
|
2017-06-18 04:23:09 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2013-08-19 20:26:13 +02:00
|
|
|
}
|