# mpv-vittgam PKGBUILD by Vittorio Gambaletta # # Based on the mpv 1:0.17.0-3 PKGBUILD # Original PKGBUILD maintainer: Christian Hesse # Original PKGBUILD contributor: Bartłomiej Piotrowski # Original PKGBUILD contributor: Eivind Uggedal _origpkgname=mpv pkgname=${_origpkgname}-vittgam epoch=1 pkgver=0.17.0 pkgrel=6 _gitcommit=da47e9ca22b4280c6132ee30f3710cdf416afc6c _waf_version=1.8.12 pkgdesc='My stable and sensible version of the mpv player that does not make me curse when newer upstream versions break and/or change things at random. :)' arch=('i686' 'x86_64' 'aarch64') license=('GPL') depends=( 'ffmpeg' 'lcms2' 'libcdio-paranoia' 'libgl' 'enca' 'libxss' 'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'wayland' 'libcaca' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav' 'libxrandr' 'jack' 'smbclient' 'rubberband' ) makedepends=('mesa' 'python-docutils' 'ladspa') optdepends=('youtube-dl: for video-sharing websites playback') options=('!emptydirs' '!buildflags') conflicts=("${_origpkgname}") provides=("${_origpkgname}") source=("${pkgname}-${_gitcommit}.tar.gz::https://github.com/VittGam/${pkgname}/archive/${_gitcommit}.tar.gz" "http://www.freehackers.org/~tnagy/release/waf-${_waf_version}") sha512sums=('697f08f9aeeb8212accaa36b452c7955604c5e236f4550ea14d857477bca4e6daf1539e569016590dce49b630def0cf55dec30e9916b5c1e7f25240316b62848' '8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939') prepare() { cd ${pkgname}-${_gitcommit} install -m755 "${srcdir}"/waf-${_waf_version} waf } build() { cd ${pkgname}-${_gitcommit} ./waf configure --prefix=/usr \ --confdir=/etc/mpv \ --enable-cdda \ --enable-encoding \ --enable-libmpv-shared \ --enable-zsh-comp ./waf build } package() { cd ${pkgname}-${_gitcommit} ./waf install --destdir="$pkgdir" install -m644 DOCS/{encoding.rst,tech-overview.txt} \ "$pkgdir"/usr/share/doc/mpv }