mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
pkgname=mpv
|
|
pkgver=0.22.0
|
|
pkgrel=4
|
|
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' 'openal'
|
|
'xdg-utils' 'lua52' 'libdvdnav' 'libcdio-paranoia' 'libbluray' 'libxss'
|
|
'enca' 'libguess' 'harfbuzz' 'libxrandr' 'rubberband' 'smbclient' 'libcaca')
|
|
makedepends=('mesa' 'python3-docutils' 'ladspa' 'x264' 'jack' 'samba' 'waf')
|
|
options=('!emptydirs')
|
|
provides=('mplayer')
|
|
install=${pkgname}.install
|
|
source=("https://github.com/mpv-player/${pkgname}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6')
|
|
|
|
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 \
|
|
--enable-encoding
|
|
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
|
|
}
|