desktop/mpv/PKGBUILD

59 lines
1.7 KiB
Bash
Raw Normal View History

2014-02-03 17:59:56 +08:00
pkgname=mpv
2016-11-21 07:38:03 +08:00
pkgver=0.22.0
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')
license=('LGPL3')
2014-02-03 17:59:56 +08:00
url="http://mpv.io"
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' 'openal'
2016-09-25 01:06:42 +08:00
'xdg-utils' 'lua52' 'libdvdnav' 'libcdio-paranoia' 'libbluray' 'libxss'
2016-10-20 15:36:02 +08:00
'enca' 'libguess' 'harfbuzz' 'libxrandr' 'rubberband' 'smbclient' 'libcaca')
makedepends=('mesa' 'python3-docutils' 'ladspa' 'x264' 'jack' 'samba' 'waf')
2015-01-28 23:14:17 +08:00
options=('!emptydirs')
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-11-21 07:38:03 +08:00
sha256sums=('c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6')
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-10-20 15:36:02 +08:00
--enable-vdpau \
--enable-encoding
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
}