contrib/mpv/Pkgfile
2018-12-06 23:04:57 +11:00

29 lines
842 B
Plaintext

# Description: General Purpose video player based on MPlayer and mplayer2
# URL: https://mpv.io/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: docutils ffmpeg libass util-linux xorg-libxscrnsaver
# Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband vulkan-loader
name=mpv
version=0.29.1
release=1
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz)
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'
./bootstrap.py
./waf configure ${PKGMK_MPV} \
--prefix=/usr \
--enable-libarchive \
--enable-libmpv-shared \
-j ${JOBS-1}
./waf build
./waf install --destdir=$PKG
rm -r $PKG/usr/share/doc
}