# Contributor: Ɓukasz Jendrysik # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.9.2 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 libxext-dev libxscrnsaver-dev py-docutils" install="" subpackages="$pkgname-doc $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 \ || return 1 ./waf build || return 1 } package() { cd "$_builddir" ./waf install --destdir="$pkgdir" || return 1 local file= mkdir -p "$pkgdir"/usr/share/doc/$pkgname for file in "$_builddir"/DOCS/*.rst "$_builddir"/DOCS/*.md; do install -Dm644 "$file" \ "$pkgdir"/usr/share/doc/$pkgname || return 1 done # Install example configuration files mkdir -p "$pkgdir"/usr/share/doc/mpv/examples install -Dm644 "$_builddir"/etc/*.conf \ "$pkgdir"/usr/share/doc/mpv/examples || return 1 } md5sums="ed1384e703f7032e531731842e4da4f7 mpv-0.9.2.tar.gz" sha256sums="c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 mpv-0.9.2.tar.gz" sha512sums="4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 mpv-0.9.2.tar.gz"