2014-02-03 17:59:56 +08:00
|
|
|
pkgname=mpv
|
2016-08-27 21:40:15 +08:00
|
|
|
pkgver=0.20.0
|
2016-09-25 01:06:42 +08:00
|
|
|
pkgrel=4
|
2014-02-03 17:59:56 +08:00
|
|
|
pkgdesc="A movie player and encoder for linux, based on MPlayer/mplayer2"
|
|
|
|
arch=('x86_64')
|
2015-12-14 04:21:42 +08:00
|
|
|
license=('LGPL3')
|
2014-02-03 17:59:56 +08:00
|
|
|
url="http://mpv.io"
|
2015-12-31 22:30:38 +08:00
|
|
|
depends=('pulseaudio' 'ffmpeg' 'lcms2' 'libdvdread' 'libgl' 'libvdpau'
|
2015-10-29 22:11:01 +08:00
|
|
|
'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'libass' 'uchardet'
|
|
|
|
'wayland' 'desktop-file-utils' 'hicolor-icon-theme' 'v4l-utils'
|
2016-09-25 01:06:42 +08:00
|
|
|
'xdg-utils' 'lua52' 'libdvdnav' 'libcdio-paranoia' 'libbluray' 'libxss'
|
2016-02-13 08:04:02 +08:00
|
|
|
'enca' 'libguess' 'harfbuzz' 'libxrandr' 'rubberband' 'smbclient')
|
2016-04-06 06:12:55 +08:00
|
|
|
makedepends=('mesa' 'python3-docutils' 'ladspa' 'x264' 'jack' 'samba' 'openal' 'waf')
|
2015-01-28 23:14:17 +08:00
|
|
|
options=('!emptydirs')
|
2015-11-03 10:37:48 +08:00
|
|
|
provides=('mplayer')
|
2014-02-03 17:59:56 +08:00
|
|
|
install=${pkgname}.install
|
2016-04-12 06:53:42 +08:00
|
|
|
source=("https://github.com/mpv-player/${pkgname}/archive/v${pkgver}.tar.gz")
|
2016-08-27 21:40:15 +08:00
|
|
|
sha256sums=('fe6ec9d2ded5ce84b963f54b812d579d04f944f4a737f3ae639c4d5d9e842b56')
|
2014-02-03 17:59:56 +08:00
|
|
|
|
|
|
|
build() {
|
2014-07-16 03:40:57 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2014-02-03 17:59:56 +08:00
|
|
|
|
2015-02-27 14:05:25 +08:00
|
|
|
# disable SDL, since they are just legacy drivers
|
2016-04-06 06:12:55 +08:00
|
|
|
waf configure \
|
2014-07-16 03:40:57 +08:00
|
|
|
--prefix=/usr \
|
|
|
|
--confdir=/etc/mpv \
|
|
|
|
--enable-libmpv-shared \
|
|
|
|
--enable-cdda \
|
|
|
|
--enable-zsh-comp \
|
2015-10-29 22:11:01 +08:00
|
|
|
--enable-alsa \
|
2014-07-16 03:40:57 +08:00
|
|
|
--enable-pulse \
|
2015-01-28 23:14:17 +08:00
|
|
|
--enable-openal \
|
2015-01-28 17:14:38 +08:00
|
|
|
--enable-wayland \
|
|
|
|
--enable-gl-wayland \
|
2015-01-28 23:14:17 +08:00
|
|
|
--enable-egl-x11 \
|
|
|
|
--enable-libsmbclient \
|
2015-10-29 22:11:01 +08:00
|
|
|
--enable-dvdread \
|
|
|
|
--enable-libv4l2 \
|
2016-06-27 16:53:19 +08:00
|
|
|
--enable-vdpau
|
2016-04-06 06:12:55 +08:00
|
|
|
waf build
|
2014-02-03 17:59:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-07-16 03:40:57 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2014-02-03 17:59:56 +08:00
|
|
|
|
2016-04-06 06:12:55 +08:00
|
|
|
waf install --destdir="${pkgdir}"
|
2014-02-03 17:59:56 +08:00
|
|
|
|
2014-07-16 03:40:57 +08:00
|
|
|
install -d "${pkgdir}/usr/share/doc/mpv/examples"
|
2014-02-03 17:59:56 +08:00
|
|
|
|
|
|
|
# some extra useful stuff "make install" doesn't install
|
2014-10-05 10:00:34 +08:00
|
|
|
install -m755 TOOLS/umpv \
|
|
|
|
"${pkgdir}"/usr/bin/umpv
|
2016-01-19 08:27:56 +08:00
|
|
|
install -m644 etc/input.conf \
|
2014-07-16 03:40:57 +08:00
|
|
|
"${pkgdir}"/usr/share/doc/mpv/examples
|
2014-04-24 05:29:56 +08:00
|
|
|
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
|
2014-07-16 03:40:57 +08:00
|
|
|
"${pkgdir}"/usr/share/doc/mpv
|
2014-02-03 17:59:56 +08:00
|
|
|
}
|