# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.3.3 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 \ || return 1 ./waf build || return 1 } package() { cd "$_builddir" ./waf install --destdir="$pkgdir" || return 1 } md5sums="bdf40570d1fc025058f9f2aabb91899f mpv-0.3.3.tar.gz" sha256sums="27d0b5ad65ba8056c5ce00bc441cf25b742cf46defcfd6ff597730f53ff2e61d mpv-0.3.3.tar.gz" sha512sums="1a9e4de41e6215525ba0d195c8d2b9ebc76beea9c1792bfcf3e594219e614fc588134f1669bd7f6a898fa961e0e9c670309cc347c42733e69c9a2a1cadb4536b mpv-0.3.3.tar.gz"