diff options
author | asyncial | 2018-12-30 23:25:21 +0100 |
---|---|---|
committer | asyncial | 2018-12-30 23:25:21 +0100 |
commit | bf2641382db54c7ab2e669e7f03527b6af255385 (patch) | |
tree | 0c1537ce8a0fe7bffdd83ac749de4514e4f179da | |
download | aur-bf2641382db54c7ab2e669e7f03527b6af255385.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 46 | ||||
-rw-r--r-- | PKGBUILD | 61 |
2 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1e79bde995c3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,46 @@ +pkgbase = mpv-thin + pkgdesc = a free, open source, and cross-platform media player + pkgver = 0.29.1 + pkgrel = 1 + epoch = 1 + url = https://mpv.io/ + arch = x86_64 + license = GPL3 + makedepends = mesa + makedepends = python-docutils + makedepends = ladspa + makedepends = wayland-protocols + makedepends = ffnvcodec-headers + makedepends = vulkan-headers + depends = desktop-file-utils + depends = ffmpeg + depends = hicolor-icon-theme + depends = lcms2 + depends = libarchive + depends = libcaca + depends = libcdio-paranoia + depends = libdvdnav + depends = libgl + depends = libva + depends = libxinerama + depends = libxkbcommon + depends = libxrandr + depends = libxss + depends = libxv + depends = lua52 + depends = rubberband + depends = uchardet + depends = vulkan-icd-loader + depends = wayland + depends = xdg-utils + optdepends = youtube-dl: for video-sharing websites playback + provides = mpv + conflicts = mpv + options = !emptydirs + source = mpv-0.29.1.tar.gz::https://github.com/mpv-player/mpv/archive/v0.29.1.tar.gz + source = https://waf.io/waf-2.0.9 + sha256sums = f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623 + sha256sums = 2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48 + +pkgname = mpv-thin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b20c0a79cffc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: asyncial +# Contributor: Christian Hesse <mail@eworm.de> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Eivind Uggedal <eivind@uggedal.com> + +_pkgname=mpv +pkgname=$_pkgname-thin +epoch=1 +pkgver=0.29.1 +pkgrel=1 +_waf_version=2.0.9 +pkgdesc='a free, open source, and cross-platform media player' +arch=('x86_64') +# We link against libraries that are licensed GPLv3 explicitly, libsmbclient +# being one of these. So our package is GPLv3 only as well. +license=('GPL3') +url='https://mpv.io/' +depends=('desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'lcms2' + 'libarchive' 'libcaca' 'libcdio-paranoia' 'libdvdnav' 'libgl' 'libva' + 'libxinerama' 'libxkbcommon' 'libxrandr' 'libxss' 'libxv' 'lua52' + 'rubberband' 'uchardet' 'vulkan-icd-loader' 'wayland' + 'xdg-utils') +makedepends=('mesa' 'python-docutils' 'ladspa' 'wayland-protocols' + 'ffnvcodec-headers' 'vulkan-headers') +optdepends=('youtube-dl: for video-sharing websites playback') +provides=('mpv') +conflicts=('mpv') +options=('!emptydirs') +source=("$_pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$_pkgname/archive/v$pkgver.tar.gz" + "https://waf.io/waf-${_waf_version}") +sha256sums=('f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623' + '2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48') + +prepare() { + cd ${_pkgname}-${pkgver} + + install -m755 "${srcdir}"/waf-${_waf_version} waf +} + +build() { + cd ${_pkgname}-${pkgver} + + ./waf configure --prefix=/usr \ + --confdir=/etc/mpv \ + --enable-cdda \ + --enable-dvdnav \ + --enable-libarchive \ + --enable-libmpv-shared \ + --enable-zsh-comp \ + + ./waf build +} + +package() { + cd ${_pkgname}-${pkgver} + + ./waf install --destdir="$pkgdir" + + install -m644 DOCS/{encoding.rst,tech-overview.txt} \ + "$pkgdir"/usr/share/doc/mpv +} |