desktop/mpv/PKGBUILD
Adrian Chaves (Gallaecio) c04250fe2e lua 5.3.3
Packages that do not support latest Lua have been moved to the CCR. If requested,
we could package lua52 and lua51 in the official repoitories to support popular
packages that have not yet caught up with latest Lua.
2016-09-21 23:49:54 +02:00

58 lines
1.7 KiB
Bash

pkgname=mpv
pkgver=0.20.0
pkgrel=3
pkgdesc="A movie player and encoder for linux, based on MPlayer/mplayer2"
arch=('x86_64')
license=('LGPL3')
url="http://mpv.io"
depends=('pulseaudio' 'ffmpeg' 'lcms2' 'libdvdread' 'libgl' 'libvdpau'
'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'libass' 'uchardet'
'wayland' 'desktop-file-utils' 'hicolor-icon-theme' 'v4l-utils'
'xdg-utils' 'lua' 'libdvdnav' 'libcdio-paranoia' 'libbluray' 'libxss'
'enca' 'libguess' 'harfbuzz' 'libxrandr' 'rubberband' 'smbclient')
makedepends=('mesa' 'python3-docutils' 'ladspa' 'x264' 'jack' 'samba' 'openal' 'waf')
options=('!emptydirs')
provides=('mplayer')
install=${pkgname}.install
source=("https://github.com/mpv-player/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('fe6ec9d2ded5ce84b963f54b812d579d04f944f4a737f3ae639c4d5d9e842b56')
build() {
cd ${pkgname}-${pkgver}
# disable SDL, since they are just legacy drivers
waf configure \
--prefix=/usr \
--confdir=/etc/mpv \
--enable-libmpv-shared \
--enable-cdda \
--enable-zsh-comp \
--enable-alsa \
--enable-pulse \
--enable-openal \
--enable-wayland \
--enable-gl-wayland \
--enable-egl-x11 \
--enable-libsmbclient \
--enable-dvdread \
--enable-libv4l2 \
--enable-vdpau
waf build
}
package() {
cd ${pkgname}-${pkgver}
waf install --destdir="${pkgdir}"
install -d "${pkgdir}/usr/share/doc/mpv/examples"
# some extra useful stuff "make install" doesn't install
install -m755 TOOLS/umpv \
"${pkgdir}"/usr/bin/umpv
install -m644 etc/input.conf \
"${pkgdir}"/usr/share/doc/mpv/examples
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
"${pkgdir}"/usr/share/doc/mpv
}