diff options
author | Daniel Bermond | 2016-12-10 17:51:28 -0200 |
---|---|---|
committer | Daniel Bermond | 2016-12-10 17:51:28 -0200 |
commit | 476298b0e9952d6428d11f5cabdb0d4aa4ad97d0 (patch) | |
tree | 967b29cd08c0848d1f8cf897e38e19c96a02f954 | |
download | aur-476298b0e9952d6428d11f5cabdb0d4aa4ad97d0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 53 | ||||
-rw-r--r-- | PKGBUILD | 183 |
2 files changed, 236 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f3c3b5404bc2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,53 @@ +# Generated by mksrcinfo v8 +# Sat Dec 10 19:50:48 UTC 2016 +pkgbase = mpv-full-git + pkgdesc = A free, open source, and cross-platform media player (Git version with all possible libs) + pkgver = 0.22.0.r54.g82855be + pkgrel = 1 + url = http://mpv.io/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = mesa + makedepends = python-docutils + makedepends = ladspa + depends = lcms2 + depends = libgl + depends = libxss + depends = libxinerama + depends = libxv + depends = libxkbcommon + depends = wayland + depends = desktop-file-utils + depends = hicolor-icon-theme + depends = xdg-utils + depends = lua52 + depends = libdvdnav + depends = libxrandr + depends = jack + depends = vapoursynth + depends = libarchive + depends = uchardet + depends = rsound + depends = sndio + optdepends = youtube-dl: for video-sharing websites playback + provides = mpv + conflicts = mpv + conflicts = mpv-git + options = !emptydirs + source = mpv-full-git::git+https://github.com/mpv-player/mpv.git + sha256sums = SKIP + depends_i686 = libcdio-paranoia + depends_i686 = libcaca + depends_i686 = smbclient + depends_i686 = rubberband + depends_i686 = libass + depends_i686 = libbluray + depends_i686 = sdl2 + depends_i686 = openal + depends_i686 = ffmpeg + depends_x86_64 = ffmpeg-full-git + +pkgname = mpv-full-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..73e3b43c840a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,183 @@ +# Maintainer: Daniel Bermond < yahoo-com: danielbermond > + +# NOTE: +# To enable CUDA support you need a ffmpeg build that has been +# compiled with CUDA (ffmpeg-full-git). +# CUDA is x86_64 only and so it will not be available in i686 builds. + +# AUR dependencies +# ---------------- +# i686: rsound sndio uchardet +# x86_64: all from i686 and ffmpeg-full-git + +pkgname=mpv-full-git +pkgver=0.22.0.r54.g82855be +pkgrel=1 +pkgdesc='A free, open source, and cross-platform media player (Git version with all possible libs)' +arch=('i686' 'x86_64') +license=('GPL') +url='http://mpv.io/' +depends=( + 'lcms2' 'libgl' 'libxss' 'libxinerama' 'libxv' 'libxkbcommon' 'wayland' + 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav' + 'libxrandr' 'jack' 'vapoursynth' 'libarchive' 'uchardet' 'rsound' 'sndio' +) +depends_i686=( + 'libcdio-paranoia' 'libcaca' 'smbclient' 'rubberband' 'libass' + 'libbluray' 'sdl2' 'openal' 'ffmpeg' +) +depends_x86_64=('ffmpeg-full-git') +optdepends=('youtube-dl: for video-sharing websites playback') +makedepends=('git' 'mesa' 'python-docutils' 'ladspa') +provides=('mpv') +conflicts=('mpv' 'mpv-git') +options=('!emptydirs') +source=("$pkgname"::'git+https://github.com/mpv-player/mpv.git') +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + + local _version="$(git tag | sort -Vr | head -n1 | sed 's/^v//')" + local _revision="$(git rev-list v${_version}..HEAD --count)" + local _shorthash="$(git rev-parse --short HEAD)" + + printf "%s.r%s.g%s" "$_version" "$_revision" "$_shorthash" +} + +build() { + cd "${srcdir}/${pkgname}" + + # Add CUDA to the build if architecture is x86_64 + if [ "$CARCH" = "x86_64" ] + then + _cuda="--enable-cuda-hwaccel" + else + _cuda="--disable-cuda-hwaccel" + fi + + msg2 "Running bootstrap. Please wait..." + ./bootstrap.py + + ./waf configure \ + --color=yes \ + --prefix=/usr \ + --confdir=/etc/mpv \ + --progress \ + \ + --enable-libmpv-shared \ + --disable-libmpv-static \ + --disable-static-build \ + --disable-debug-build \ + \ + --enable-manpage-build \ + --disable-html-build \ + --disable-pdf-build \ + \ + --enable-vf-dlopen-filters \ + --enable-zsh-comp \ + --disable-test \ + --disable-clang-database \ + \ + --disable-win32-internal-pthreads \ + --enable-iconv \ + --enable-termios \ + --enable-shm \ + --enable-libsmbclient \ + --enable-lua \ + --enable-libass \ + --enable-libass-osd \ + --enable-encoding \ + --enable-libbluray \ + --enable-dvdread \ + --enable-dvdnav \ + --enable-cdda \ + --enable-uchardet \ + --enable-rubberband \ + --enable-lcms2 \ + --enable-vapoursynth \ + --enable-vapoursynth-lazy \ + --enable-libarchive \ + --enable-libswresample \ + --enable-libavdevice \ + --lua=52arch \ + \ + --enable-sdl2 \ + --disable-sdl1 \ + --enable-oss-audio \ + --enable-rsound \ + --enable-sndio \ + --enable-pulse \ + --enable-jack \ + --enable-openal \ + --disable-opensles \ + --enable-alsa \ + --disable-coreaudio \ + --disable-audiounit \ + --disable-wasapi \ + \ + --disable-cocoa \ + --enable-drm \ + --enable-gbm \ + --enable-wayland \ + --enable-x11 \ + --enable-xss \ + --enable-xext \ + --enable-xv \ + --enable-xinerama \ + --enable-xrandr \ + --disable-gl-cocoa \ + --enable-gl-x11 \ + --enable-egl-x11 \ + --enable-egl-drm \ + --enable-gl-wayland \ + --disable-gl-win32 \ + --disable-gl-dxinterop \ + --disable-egl-angle \ + --disable-egl-angle-lib \ + --enable-vdpau \ + --enable-vdpau-gl-x11 \ + --enable-vaapi \ + --enable-vaapi-x11 \ + --enable-vaapi-wayland \ + --enable-vaapi-drm \ + --enable-vaapi-glx \ + --enable-vaapi-x-egl \ + --enable-caca \ + --enable-jpeg \ + --disable-direct3d \ + --disable-android \ + --disable-rpi \ + --enable-standard-gl \ + --disable-android-gl \ + --disable-ios-gl \ + --enable-any-gl \ + --enable-plain-gl \ + --disable-mali-fbdev \ + --enable-gl \ + \ + --enable-vaapi-hwaccel \ + --disable-videotoolbox-hwaccel \ + --disable-videotoolbox-gl \ + --enable-vdpau-hwaccel \ + --disable-d3d-hwaccel \ + "$_cuda" \ + \ + --enable-tv \ + --enable-tv-v4l2 \ + --enable-libv4l2 \ + --enable-audio-input \ + --enable-dvbin \ + --disable-apple-remote + + ./waf build +} + +package() { + cd "${srcdir}/${pkgname}" + + ./waf install --destdir="$pkgdir" + + install -m644 DOCS/{encoding.rst,tech-overview.txt} \ + "$pkgdir"/usr/share/doc/mpv +} |