diff options
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..395d77ec2021 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = mpv-light-pulse + pkgdesc = Free, open source, and cross-platform media player – with selection of features (pulse, dvd and cd support). + pkgver = 0.33.0 + pkgrel = 1 + url = https://mpv.io + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = python-docutils + makedepends = wayland-protocols + makedepends = wayland + makedepends = vulkan-headers + makedepends = waf + depends = libcdio-paranoia + depends = libdvdnav + depends = ffmpeg + depends = libxkbcommon + depends = libxrandr + depends = libxss + depends = lua52 + depends = uchardet + depends = libxinerama + depends = vulkan-icd-loader + depends = shaderc + depends = libplacebo + depends = libpulse + optdepends = youtube-dl: for video-sharing websites playback + provides = mpv + conflicts = mpv + options = !emptydirs + source = git+https://github.com/mpv-player/mpv.git#tag=d5ae9f70ea1f21c1d3794df5345a6a9366188660 + sha256sums = SKIP + +pkgname = mpv-light-pulse diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e8931f06f7fa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com> +# Keep an eye on https://github.com/archlinux/svntogit-community/commits/packages/mpv/trunk for changes + +_pkgname=mpv +pkgname=${_pkgname}-light-pulse +pkgver=0.33.0 +pkgrel=1 +pkgdesc="Free, open source, and cross-platform media player – with selection of features (pulse, dvd and cd support)." +arch=(i686 x86_64) +url="https://mpv.io" +license=(GPL) +depends=(libcdio-paranoia libdvdnav ffmpeg libxkbcommon libxrandr libxss lua52 uchardet libxinerama vulkan-icd-loader shaderc libplacebo libpulse) +makedepends=(git python-docutils wayland-protocols wayland vulkan-headers waf) +optdepends=('youtube-dl: for video-sharing websites playback') +options=('!emptydirs') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +_tag='d5ae9f70ea1f21c1d3794df5345a6a9366188660' # git rev-parse v${pkgver} +source=(git+https://github.com/mpv-player/mpv.git#tag=${_tag}) +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 \ + --lua=52arch \ + --enable-cdda \ + --enable-dvdnav \ + --enable-libmpv-shared \ + --disable-libarchive \ + --disable-libbluray \ + --disable-rubberband \ + --disable-vapoursynth \ + --disable-jack \ + --disable-opensles \ + --disable-xv \ + --disable-caca + + waf build +} + +package() { + cd ${_pkgname} + + waf install --destdir="${pkgdir}" + + install -m644 DOCS/{encoding.rst,tech-overview.txt} "${pkgdir}"/usr/share/doc/mpv +} |