summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorInochi Amaoto2019-03-18 13:48:33 +0800
committerInochi Amaoto2019-03-18 13:48:33 +0800
commit11314cdf83222bfa572cae8c9b51940052af890e (patch)
tree1ae467f777345202f887de6dcbe3beddcaceeb92
downloadaur-11314cdf83222bfa572cae8c9b51940052af890e.tar.gz
package init
-rw-r--r--.SRCINFO162
-rw-r--r--.gitignore5
-rw-r--r--LICENSE9
-rw-r--r--PKGBUILD401
4 files changed, 577 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..e3672ba472fc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,162 @@
+pkgbase = mpv-full-build-git
+ pkgdesc = Video player based on MPlayer/mplayer2 with all possible libs (uses statically linked ffmpeg with all possible libs). (GIT version )
+ pkgver = v0.29.0.282.gfcb320fd3f
+ pkgrel = 1
+ url = http://mpv.io
+ arch = x86_64
+ license = GPL2
+ license = GPL3
+ license = LGPL3
+ license = LGPL2.1
+ license = BSD
+ license = custom
+ makedepends = git
+ makedepends = mesa
+ makedepends = python-docutils
+ makedepends = nasm
+ makedepends = ladspa
+ makedepends = fontconfig
+ makedepends = vulkan-headers
+ makedepends = opencl-headers
+ makedepends = wayland-protocols
+ makedepends = ffnvcodec-headers
+ depends = alsa-lib
+ depends = aom
+ depends = bzip2
+ depends = celt
+ depends = dav1d
+ depends = desktop-file-utils
+ depends = fontconfig
+ depends = freetype2
+ depends = frei0r-plugins
+ depends = fribidi
+ depends = glibc
+ depends = gmp
+ depends = gnutls
+ depends = gsm
+ depends = hicolor-icon-theme
+ depends = jack
+ depends = jack2
+ depends = ladspa
+ depends = lame
+ depends = lcms2
+ depends = lensfun
+ depends = libarchive
+ depends = libass
+ depends = libavc1394
+ depends = libbluray
+ depends = libbs2b
+ depends = libcaca
+ depends = libcdio-paranoia
+ depends = libdc1394
+ depends = libdrm
+ depends = libdvdnav
+ depends = libfdk-aac
+ depends = libgcrypt
+ depends = libgl
+ depends = libglvnd
+ depends = libgme
+ depends = libiec61883
+ depends = libmodplug
+ depends = libomxil-bellagio
+ depends = libpng
+ depends = libpulse
+ depends = librsvg
+ depends = libsoxr
+ depends = libssh
+ depends = libtheora
+ depends = libva
+ depends = libvdpau
+ depends = libvorbis
+ depends = libvpx
+ depends = libwebp
+ depends = libx11
+ depends = libxcb
+ depends = libxext
+ depends = libxinerama
+ depends = libxkbcommon
+ depends = libxml2
+ depends = libxrandr
+ depends = libxss
+ depends = libxv
+ depends = lilv
+ depends = luajit
+ depends = lv2
+ depends = ocl-icd
+ depends = openal
+ depends = opencore-amr
+ depends = openjpeg2
+ depends = opus
+ depends = pulseaudio
+ depends = rtmpdump
+ depends = rubberband
+ depends = sdl2
+ depends = smbclient
+ depends = snappy
+ depends = sndio
+ depends = speex
+ depends = srt
+ depends = tensorflow
+ depends = tesseract
+ depends = twolame
+ depends = uchardet
+ depends = v4l-utils
+ depends = vid.stab
+ depends = vulkan-icd-loader
+ depends = wavpack
+ depends = wayland
+ depends = x264
+ depends = x265
+ depends = xdg-utils
+ depends = xvidcore
+ depends = xz
+ depends = zeromq
+ depends = zimg
+ depends = zlib
+ depends = zvbi
+ depends = chromaprint-fftw
+ depends = codec2
+ depends = crossc
+ depends = davs2
+ depends = flite1-patched
+ depends = kvazaar
+ depends = libilbc
+ depends = libklvanc-git
+ depends = libmysofa-git
+ depends = libopenmpt-svn
+ depends = mujs
+ depends = ndi-sdk
+ depends = openh264
+ depends = rockchip-mpp
+ depends = rsound
+ depends = shaderc-git
+ depends = shine
+ depends = vo-amrwbenc
+ depends = xavs
+ depends = xavs2
+ depends = vapoursynth
+ optdepends = mpv-bash-completion-git: Additional completion definitions for Bash users
+ optdepends = nvidia-utils: for hardware accelerated video decoding with CUDA
+ optdepends = youtube-dl: Another way to view youtuve videos with mpv
+ optdepends = zsh-completions: Additional completion definitions for Zsh users
+ provides = mpv
+ provides = mpv-git
+ provides = mpv-build-git
+ conflicts = mpv
+ conflicts = mpv-git
+ conflicts = mpv-build-git
+ options = !emptydirs
+ backup = etc/mpv/encoding-profiles.conf
+ source = git+https://github.com/mpv-player/mpv-build.git
+ source = git+https://github.com/mpv-player/mpv.git
+ source = git+https://github.com/ffmpeg/ffmpeg.git
+ source = git+https://github.com/libass/libass.git
+ source = LICENSE
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = 04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36
+
+pkgname = mpv-full-build-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..774bcccbc785
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!LICENSE
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..b0bb658ca78c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,9 @@
+This software is nonfree and unredistributable.
+
+The end-user must compile this software for himself in order to be allowed to use it.
+
+This software cannot be redistributed.
+
+This software cannot be used commercially.
+
+Due to the libraries used to compile this software, the resulting binaries and libraries are under a complex and restrictive license mix.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..50d614ab81ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,401 @@
+# Maintainer: Inochi Amaoto <libraryindexsky@gmail.com>
+
+pkgname=mpv-full-build-git
+pkgver=v0.29.0.282.gfcb320fd3f
+pkgrel=1
+pkgdesc="Video player based on MPlayer/mplayer2 with all possible libs (uses statically linked ffmpeg with all possible libs). (GIT version )"
+arch=('x86_64')
+depends=(
+ # official repositories:
+ 'alsa-lib'
+ 'aom'
+ 'bzip2'
+ 'celt'
+ 'dav1d'
+ 'desktop-file-utils'
+ 'fontconfig'
+ 'freetype2'
+ 'frei0r-plugins'
+ 'fribidi'
+ 'glibc'
+ 'gmp'
+ 'gnutls'
+ 'gsm'
+ 'hicolor-icon-theme'
+ 'jack'
+ 'jack2'
+ 'ladspa'
+ 'lame'
+ 'lcms2'
+ 'lensfun'
+ 'libarchive'
+ 'libass'
+ 'libavc1394'
+ 'libbluray'
+ 'libbs2b'
+ 'libcaca'
+ 'libcdio-paranoia'
+ 'libdc1394'
+ 'libdrm'
+ 'libdvdnav'
+ 'libfdk-aac'
+ 'libgcrypt'
+ 'libgl'
+ 'libglvnd'
+ 'libgme'
+ 'libiec61883'
+ 'libmodplug'
+ 'libomxil-bellagio'
+ 'libpng'
+ 'libpulse'
+ 'librsvg'
+ 'libsoxr'
+ 'libssh'
+ 'libtheora'
+ 'libva'
+ 'libvdpau'
+ 'libvorbis'
+ 'libvpx'
+ 'libwebp'
+ 'libx11'
+ 'libxcb'
+ 'libxext'
+ 'libxinerama'
+ 'libxkbcommon'
+ 'libxml2'
+ 'libxrandr'
+ 'libxss'
+ 'libxv'
+ 'lilv'
+ 'luajit'
+ 'lv2'
+ 'ocl-icd'
+ 'openal'
+ 'opencore-amr'
+ 'openjpeg2'
+ 'opus'
+ 'pulseaudio'
+ 'rtmpdump'
+ 'rubberband'
+ 'sdl2'
+ 'smbclient'
+ 'snappy'
+ 'sndio'
+ 'speex'
+ 'srt'
+ 'tensorflow'
+ 'tesseract'
+ 'twolame'
+ 'uchardet'
+ 'v4l-utils'
+ 'vid.stab'
+ 'vulkan-icd-loader'
+ 'wavpack'
+ 'wayland'
+ 'x264'
+ 'x265'
+ 'xdg-utils'
+ 'xvidcore'
+ 'xz'
+ 'zeromq'
+ 'zimg'
+ 'zlib'
+ 'zvbi'
+
+ # AUR:
+ 'chromaprint-fftw'
+ 'codec2'
+ 'crossc'
+ 'davs2'
+ 'flite1-patched'
+ 'kvazaar'
+ 'libilbc'
+ 'libklvanc-git'
+ 'libmysofa-git'
+ 'libopenmpt-svn'
+ 'mujs'
+ 'ndi-sdk'
+ 'openh264'
+ 'rockchip-mpp'
+ 'rsound'
+ 'shaderc-git'
+ 'shine'
+ 'vo-amrwbenc'
+ 'xavs'
+ 'xavs2'
+ )
+license=('GPL2' 'GPL3' 'LGPL3' 'LGPL2.1' 'BSD' 'custom')
+url='http://mpv.io'
+makedepends=(
+ 'git'
+ 'mesa'
+ 'python-docutils'
+ 'nasm'
+ 'ladspa'
+ 'fontconfig'
+ 'vulkan-headers'
+ 'opencl-headers'
+ 'wayland-protocols'
+ 'ffnvcodec-headers'
+ )
+optdepends=(
+ 'mpv-bash-completion-git: Additional completion definitions for Bash users'
+ 'nvidia-utils: for hardware accelerated video decoding with CUDA'
+ 'youtube-dl: Another way to view youtuve videos with mpv'
+ 'zsh-completions: Additional completion definitions for Zsh users'
+ )
+provides=('mpv' 'mpv-git' 'mpv-build-git')
+conflicts=('mpv' 'mpv-git' 'mpv-build-git')
+options=('!emptydirs')
+source=('git+https://github.com/mpv-player/mpv-build.git'
+ 'git+https://github.com/mpv-player/mpv.git'
+ 'git+https://github.com/ffmpeg/ffmpeg.git'
+ 'git+https://github.com/libass/libass.git'
+ 'LICENSE'
+ )
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ '04a7176400907fd7db0d69116b99de49e582a6e176b3bfb36a03e50a4cb26a36'
+ )
+backup=('etc/mpv/encoding-profiles.conf')
+
+if [ -f /usr/lib/libvapoursynth.so ]; then
+ depends+=('vapoursynth')
+fi
+
+pkgver() {
+ cd mpv
+ echo "$(git describe --long --tags | tr - .)"
+}
+
+prepare() {
+ cd mpv-build
+ rm -rf mpv
+ rm -rf ffmpeg
+ rm -rf libass
+ git clone "${srcdir}/mpv"
+ git clone "${srcdir}/ffmpeg"
+ git clone "${srcdir}/libass"
+
+ # Set ffmpeg/libass/mpv flags
+ _ffmpeg_options=(
+ '--disable-libopencv'
+ '--disable-libtls'
+ '--disable-mbedtls'
+ '--disable-programs'
+ '--enable-alsa'
+ '--enable-avisynth'
+ '--enable-avresample'
+ '--enable-bzlib'
+ '--enable-chromaprint'
+ '--enable-cuvid'
+ '--enable-ffnvcodec'
+ '--enable-fontconfig'
+ '--enable-frei0r'
+ '--enable-gcrypt'
+ '--enable-gmp'
+ '--enable-gnutls'
+ '--enable-gpl'
+ '--enable-gray'
+ '--enable-iconv'
+ '--enable-ladspa'
+ '--enable-libaom'
+ '--enable-libass'
+ '--enable-libbluray'
+ '--enable-libbs2b'
+ '--enable-libcaca'
+ '--enable-libcdio'
+ '--enable-libcelt'
+ '--enable-libcodec2'
+ '--enable-libdavs2'
+ '--enable-libdc1394'
+ '--enable-libdrm'
+ '--enable-libfdk-aac'
+ '--enable-libflite'
+ '--enable-libfreetype'
+ '--enable-libfribidi'
+ '--enable-libgme'
+ '--enable-libgsm'
+ '--enable-libiec61883'
+ '--enable-libilbc'
+ '--enable-libjack'
+ '--enable-libklvanc'
+ '--enable-libkvazaar'
+ '--enable-liblensfun'
+ '--enable-libmodplug'
+ '--enable-libmp3lame'
+ '--enable-libmysofa'
+ '--enable-libndi_newtek'
+ '--enable-libopencore-amrnb'
+ '--enable-libopencore-amrwb'
+ '--enable-libopenh264'
+ '--enable-libopenjpeg'
+ '--enable-libopenmpt'
+ '--enable-libopus'
+ '--enable-libpulse'
+ '--enable-librsvg'
+ '--enable-librtmp'
+ '--enable-librubberband'
+ '--enable-libshine'
+ '--enable-libsnappy'
+ '--enable-libsoxr'
+ '--enable-libspeex'
+ '--enable-libsrt'
+ '--enable-libssh'
+ '--enable-libtensorflow'
+ '--enable-libtesseract'
+ '--enable-libtheora'
+ '--enable-libtwolame'
+ '--enable-libv4l2'
+ '--enable-libvidstab'
+ '--enable-libvo-amrwbenc'
+ '--enable-libvorbis'
+ '--enable-libvpx'
+ '--enable-libwavpack'
+ '--enable-libwebp'
+ '--enable-libx264'
+ '--enable-libx265'
+ '--enable-libxavs'
+ '--enable-libxavs2'
+ '--enable-libxcb'
+ '--enable-libxcb-shape'
+ '--enable-libxcb-shm'
+ '--enable-libxcb-xfixes'
+ '--enable-libxml2'
+ '--enable-libxvid'
+ '--enable-libzimg'
+ '--enable-libzmq'
+ '--enable-libzvbi'
+ '--enable-lv2'
+ '--enable-lzma'
+ '--enable-nonfree'
+ '--enable-nvdec'
+ '--enable-nvenc'
+ '--enable-omx'
+ '--enable-omx-rpi'
+ '--enable-openal'
+ '--enable-opencl'
+ '--enable-opengl'
+ '--enable-rkmpp'
+ '--enable-sdl2'
+ '--enable-sndio'
+ '--enable-v4l2-m2m'
+ '--enable-vaapi'
+ '--enable-vapoursynth'
+ '--enable-vdpau'
+ '--enable-version3'
+ '--enable-xlib'
+ '--enable-zlib'
+ )
+ _mpv_options=(
+ '--prefix=/usr'
+ '--confdir=/etc/mpv'
+ '--htmldir=/usr/share/doc/mpv/html'
+ '--disable-test'
+ '--disable-build-date'
+ '--disable-vapoursynth-lazy'
+ '--lua=luajit'
+ '--enable-alsa'
+ '--enable-audio-input'
+ '--enable-caca'
+ '--enable-cdda'
+ '--enable-cplugins'
+ '--enable-crossc'
+ '--enable-cuda-hwaccel'
+ '--enable-drm'
+ '--enable-drmprime'
+ '--enable-dvbin'
+ '--enable-dvdnav'
+ '--enable-dvdread'
+ '--enable-egl-drm'
+ '--enable-egl-x11'
+ '--enable-gbm'
+ '--enable-gl'
+ '--enable-gl-wayland'
+ '--enable-gl-x11'
+ '--enable-html-build'
+ '--enable-iconv'
+ '--enable-jack'
+ '--enable-javascript'
+ '--enable-jpeg'
+ '--enable-lcms2'
+ '--enable-libarchive'
+ '--enable-libass'
+ '--enable-libass-osd'
+ '--enable-libavdevice'
+ '--enable-libbluray'
+ '--enable-libmpv-shared'
+ '--enable-libsmbclient'
+ '--enable-libv4l2'
+ '--enable-lua'
+ '--enable-manpage-build'
+ '--enable-openal'
+ '--enable-plain-gl'
+ '--enable-pulse'
+ '--enable-rsound'
+ '--enable-rubberband'
+ '--enable-sdl2'
+ '--enable-shaderc'
+ '--enable-sndio'
+ '--enable-tv'
+ '--enable-tv'
+ '--enable-tv-v4l2'
+ '--enable-uchardet'
+ '--enable-vaapi'
+ '--enable-vaapi-drm'
+ '--enable-vaapi-glx'
+ '--enable-vaapi-wayland'
+ '--enable-vaapi-x11'
+ '--enable-vaapi-x-egl'
+ '--enable-vdpau'
+ '--enable-vdpau-gl-x11'
+ '--enable-vulkan'
+ '--enable-wayland'
+ '--enable-wayland-protocols'
+ '--enable-wayland-scanner'
+ '--enable-x11'
+ '--enable-xv'
+ '--enable-zlib'
+ '--enable-zsh-comp'
+ )
+
+ # '--enable-libdav1d'
+ # '--enable-libsmbclient'
+
+if [ -f /usr/lib/libvapoursynth.so ]; then
+ _mpv_options+=('--enable-vapoursynth')
+fi
+
+ echo ${_ffmpeg_options[@]} > ffmpeg_options
+ echo ${_mpv_options[@]} > mpv_options
+
+ cd mpv
+
+ ./bootstrap.py
+}
+
+build() {
+ cd mpv-build
+ ./build
+}
+
+package() {
+ cd mpv-build
+ DESTDIR="${pkgdir}" ./install
+
+ install -Dm755 mpv/TOOLS/mpv_identify.sh "${pkgdir}/usr/bin/mpv-identify"
+ install -Dm755 mpv/TOOLS/idet.sh "${pkgdir}/usr/bin/mpv-idet"
+ install -Dm755 mpv/TOOLS/umpv "${pkgdir}/usr/bin/umpv"
+
+ install -Dm644 mpv/DOCS/encoding.rst "${pkgdir}/usr/share/doc/mpv/encoding.rst"
+ install -Dm644 mpv/DOCS/edl-mpv.rst "${pkgdir}/usr/share/doc/mpv/edl-mpv.rst"
+ install -Dm644 mpv/DOCS/client-api-changes.rst "${pkgdir}/usr/share/doc/mpv/client-api-changes.rst"
+ install -Dm644 mpv/DOCS/contribute.md "${pkgdir}/usr/share/doc/mpv/contribute.md"
+
+ sed 's|/usr/local/etc/mpv.conf|/etc/mpv.conf|g' -i "${pkgdir}/usr/share/doc/mpv/mpv.conf"
+ install -D -m644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/ffmpeg"
+
+ (cd mpv/TOOLS/lua; for i in $(find . -type f); do install -Dm644 "${i}" "${pkgdir}/usr/share/mpv/scripts/${i}"; done)
+}