# Contributor: Sören Tempel # Contributor: Łukasz Jendrysik # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=mpv pkgver=0.18.1 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 py-docutils rsound-dev libxrandr-dev" subpackages=" $pkgname-doc $pkgname-libs $pkgname-zsh-completion:zshcomp" source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 cd "$builddir" ./bootstrap.py } build() { cd "$builddir" ./waf configure --prefix=/usr \ --mandir=/usr/share/man \ --confdir=/etc/mpv \ --enable-alsa \ --enable-libass \ --enable-libmpv-shared \ --enable-rsound \ --enable-xrandr \ --enable-xss \ --enable-zsh-comp \ || 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 # Move example configuration files to subdirectory mkdir -p "$pkgdir"/usr/share/doc/mpv/examples mv "$pkgdir"/usr/share/doc/mpv/*.conf \ "$pkgdir"/usr/share/doc/mpv/examples/ || return 1 } zshcomp() { depends="" pkgdesc="Zsh completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" arch="noarch" mkdir -p "$subpkgdir/usr/share/zsh/site-functions" mv "$pkgdir/usr/share/zsh/site-functions"/* \ "$subpkgdir/usr/share/zsh/site-functions" || return 1 } md5sums="708ef2f30825128b3eb9dd35a47ee7e4 mpv-0.18.1.tar.gz" sha256sums="e413d57fec4ad43b9f9b848f38d13fb921313fc9a4a64bf1e906c8d0f7a46329 mpv-0.18.1.tar.gz" sha512sums="4ed94a5365d432d1fb07c11a8e40ed7564925eacec8b61576690b8f3d8ff82d4e0b2841cc941fb711c659c77ff67bfea86b66bd5f570d3ae953bce715981cd2a mpv-0.18.1.tar.gz"