# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.5.0 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 libva-dev mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python libxext-dev libxscrnsaver-dev libquvi-dev" install="" subpackages="$pkgname-libs" 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 \ --enable-libmpv-shared \ --enable-libass \ --enable-xss \ --enable-libquvi \ || return 1 ./waf build || return 1 } package() { cd "$_builddir" ./waf install --destdir="$pkgdir" || return 1 } md5sums="85e4895dfdce888fb436e7c217958b8b mpv-0.5.0.tar.gz" sha256sums="263d105c1707ae5fb9eedac030b4f8f4e6e3f9c000c074c615397a54bb61b59e mpv-0.5.0.tar.gz" sha512sums="d0ad5e8e55582e8a998b751d7786bc82fd0be09043dd993f6eb3c564492990a923dbb1dfa72f145758515924aa922a3877cfa90c7139b508b324216dd9f8e9a7 mpv-0.5.0.tar.gz"