community/mpv to 0.16.0-2

This commit is contained in:
Kevin Mihelich 2016-04-03 20:41:52 +00:00
parent 23e71a35a2
commit ed8a0144d5

View file

@ -9,7 +9,8 @@
pkgname=mpv
epoch=1
pkgver=0.16.0
pkgrel=1
pkgrel=2
_waf_version=1.8.12
pkgdesc='Video player based on MPlayer/mplayer2'
arch=('i686' 'x86_64')
license=('GPL')
@ -24,12 +25,23 @@ makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper' 'git')
optdepends=('youtube-dl: for video-sharing websites playback')
options=('!emptydirs' '!buildflags')
install=mpv.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('fc3619de0ede16fbb023ac72589090e8e77fd9d9e03a81adc728105d50ef38ba')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
"http://www.freehackers.org/~tnagy/release/waf-${_waf_version}"
'mpv-x11-do-not-set-set-_NET_WM_BYPASS_COMPOSITOR-by-default.patch::https://github.com/mpv-player/mpv/commit/2720e60ad00ff7cce1d80724bbd4b2b981748195.patch')
sha256sums=('fc3619de0ede16fbb023ac72589090e8e77fd9d9e03a81adc728105d50ef38ba'
'01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b'
'eb44faeddb707d2cee26eb844876e4594277e46454393defe6f6608f9a4362e5')
prepare() {
cd ${pkgname}-${pkgver}
install -m755 "${srcdir}"/waf-${_waf_version} waf
# https://bugs.archlinux.org/task/48762
# https://github.com/mpv-player/mpv/issues/2997
# https://github.com/mpv-player/mpv/commit/2720e60ad00ff7cce1d80724bbd4b2b981748195
patch -Np1 < "${srcdir}"/mpv-x11-do-not-set-set-_NET_WM_BYPASS_COMPOSITOR-by-default.patch
./bootstrap.py
}