# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.3.8 pkgrel=0 pkgdesc="Video player based on MPlayer/mplayer2" url="http://mpv.io/" arch="all" license="GPL" depends= makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev live-media-dev mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python" install="" subpackages="" source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz " _builddir="$srcdir"/mpv-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done ./bootstrap.py } build() { cd "$_builddir" ./waf configure --prefix=/usr \ --mandir=/usr/share/man \ --confdir=/etc/mpv \ --disable-libass \ || return 1 ./waf build || return 1 } package() { cd "$_builddir" ./waf install --destdir="$pkgdir" || return 1 } md5sums="f7fc14f52c1958f6b603245b0595efa9 mpv-0.3.8.tar.gz" sha256sums="6bcc9be4ec79854c17aafe6ffea2863ee8d25692735792dfde97ea7a02cee74c mpv-0.3.8.tar.gz" sha512sums="c6a8cc7bf0866a9bfd63a216ad4a07d80898db4fef74c9bda098e4c5a33933366b8eaa102cb6fd7a8e608b6170bd37c889dcbc57dc88dcbfb7db8c29f7daa733 mpv-0.3.8.tar.gz"