Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------
- # $Id$
- # Maintainer: Rudolf Polzer <[email protected]>
- # Original-Maintainer: Bartłomiej Piotrowski <[email protected]>
- # Contributor: Eivind Uggedal <[email protected]>
- pkgname=mpv-git
- pkgver=0.36262.da6093a
- pkgrel=1
- pkgdesc='Video player based on MPlayer/mplayer2'
- arch=('i686' 'x86_64')
- license=('GPL')
- url='http://mpv.io'
- depends=('ffmpeg' 'lcms2' 'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'sdl2_image' 'sdl')
- makedepends=('mesa' 'python-docutils' 'desktop-file-utils' 'hicolor-icon-theme' 'libxss')
- provides=('mpv')
- conflicts=('mpv')
- options=(!emptydirs)
- install=mpv.install
- source=('git+http://github.com/mpv-player/mpv#branch=master')
- md5sums=('SKIP')
- _gitname="mpv"
- pkgver() {
- cd "$srcdir/$_gitname"
- microver="$(git log -1 --pretty=format:%h )"
- minorver="$(git rev-list --count HEAD)"
- echo "0.$minorver.$microver"
- }
- build() {
- cd "$srcdir/$_gitname"
- ./configure --prefix=/usr \
- --confdir=/etc/mpv \
- --disable-lirc \
- --disable-lircc \
- --disable-joystick \
- --disable-radio \
- --disable-radio-capture \
- --disable-radio-v4l2 \
- --disable-rpath \
- --disable-libbs2b \
- --disable-direct3d \
- --disable-corevideo \
- --disable-cocoa \
- --disable-coreaudio --enable-gl --disable-pulse --disable-jack --disable-portaudio --enable-sdl2 --disable-pdf
- make
- }
- package() {
- cd "$srcdir/$_gitname"
- make -j1 DESTDIR="$pkgdir" install
- install -d "$pkgdir"/usr/share/doc/mpv/examples
- install -m644 etc/{input,example,encoding-example-profiles}.conf \
- "$pkgdir"/usr/share/doc/mpv/examples
- install -m644 DOCS/{encoding.rst,tech-overview.txt} \
- "$pkgdir"/usr/share/doc/mpv
- install -m755 TOOLS/mpv_identify.sh "$pkgdir"/usr/bin
- }
Advertisement
Add Comment
Please, Sign In to add comment