diff options
author | Pellegrino Prevete | 2021-09-29 12:35:39 +0200 |
---|---|---|
committer | Pellegrino Prevete | 2021-09-29 12:35:39 +0200 |
commit | 7e77970b390c1a6ecb06a36dbc9efb5a8145ad99 (patch) | |
tree | afa349b8df18d70401e49c56f0d706e7a1ef724c /PKGBUILD | |
download | aur-7e77970b390c1a6ecb06a36dbc9efb5a8145ad99.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5fda502ff17d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com> +# Contributor: Christian Hesse <mail@eworm.de> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Eivind Uggedal <eivind@uggedal.com> +_pkgname=mpv +pkgname=$_pkgname-caca +epoch=1 +_tag='4c9d3669a0f672e6754ac456acd324db570964d3' # git rev-parse v${pkgver} +pkgver=0.33.1 +pkgrel=4 +pkgdesc='a free, open source, and cross-platform media player' +arch=('x86_64') +# We link against libraries that are licensed GPLv3 explicitly, so our +# package is GPLv3 only as well. (Is this still correct?) +license=('GPL3') +url='https://mpv.io/' +depends=('alsa-lib' 'libasound.so' 'desktop-file-utils' 'ffmpeg' 'libavcodec.so' 'libavdevice.so' + 'libavfilter.so' 'libavformat.so' 'libavutil.so' 'libswresample.so' 'libswscale.so' + 'glibc' 'hicolor-icon-theme' 'jack' 'libjack.so' 'lcms2' 'liblcms2.so' 'libarchive' + 'libarchive.so' 'libass' 'libass.so' 'libbluray' 'libbluray.so' 'libcaca' 'libcdio' + 'libcdio-paranoia' 'libdrm' 'libdvdnav' 'libdvdread' 'libegl' 'libgl' 'libglvnd' + 'libjpeg' 'libjpeg.so' 'libplacebo' 'libplacebo.so' 'libpulse' 'libpulse.so' + 'libva' 'libva.so' 'libva-drm.so' 'libva-wayland.so' 'libva-x11.so' 'libvdpau' 'libx11' + 'libxext' 'libxinerama' 'libxkbcommon' 'libxkbcommon.so' 'libxrandr' 'libxss' + 'libxv' 'lua52' 'mesa' 'mujs' 'rubberband' 'librubberband.so' 'shaderc' + 'libshaderc_shared.so' 'uchardet' 'vulkan-icd-loader' 'wayland' 'xdg-utils' + 'zlib') +makedepends=('git' 'python-docutils' 'ladspa' 'wayland-protocols' + 'ffnvcodec-headers' 'vulkan-headers' 'waf') +optdepends=('youtube-dl: for video-sharing websites playback') +provides=('libmpv.so' 'mpv') +replaces=('mpv') +conflicts=('mpv') +options=('!emptydirs') +validpgpkeys=('145077D82501AA20152CACCE8D769208D5E31419') # sfan5 <sfan5@live.de> +source=("git+https://github.com/mpv-player/mpv.git#tag=${_tag}?signed") +sha256sums=('SKIP') +prepare() { + cd ${_pkgname} + # vo_gpu: placebo: update for upstream API changes + git cherry-pick -n 7c4465cefb27d4e0d07535d368febdf77b579566 +} +build() { + cd ${_pkgname} + waf configure --prefix=/usr \ + --confdir=/etc/mpv \ + --enable-cdda \ + --enable-dvb \ + --enable-dvdnav \ + --enable-libarchive \ + --enable-libmpv-shared \ + --disable-build-date + + waf build +} +package() { + cd ${_pkgname} + waf install --destdir="$pkgdir" + install -m0644 DOCS/{encoding.rst,tech-overview.txt} \ + "$pkgdir"/usr/share/doc/mpv + install -m0644 TOOLS/lua/* \ + -D -t "$pkgdir"/usr/share/mpv/scripts +} |