# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.3.9 pkgrel=1 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 libva-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="afb42ae3b94bc968cfa9a690cde1df72 mpv-0.3.9.tar.gz" sha256sums="16bef041dfdeab2608e2b77adcbed31aa62d2e100c3a8d1a69eb4ba7b9d4778d mpv-0.3.9.tar.gz" sha512sums="47e7674f3197466f9fae5e092cbf2d8c4c18282e3c2528f70cfe3cd23d6cda7a85809fd7ceaca2838b82ebe70cc6d1bedd56c20e25b37e25d51c74478504bbd9 mpv-0.3.9.tar.gz"