Guest User

Untitled

a guest
Oct 25th, 2013
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. -------
  2. # $Id$
  3. # Maintainer: Rudolf Polzer <[email protected]>
  4. # Original-Maintainer: Bartłomiej Piotrowski <[email protected]>
  5. # Contributor: Eivind Uggedal <[email protected]>
  6.  
  7. pkgname=mpv-git
  8. pkgver=0.36262.da6093a
  9. pkgrel=1
  10. pkgdesc='Video player based on MPlayer/mplayer2'
  11. arch=('i686' 'x86_64')
  12. license=('GPL')
  13. url='http://mpv.io'
  14. depends=('ffmpeg' 'lcms2' 'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'sdl2_image' 'sdl')
  15. makedepends=('mesa' 'python-docutils' 'desktop-file-utils' 'hicolor-icon-theme' 'libxss')
  16. provides=('mpv')
  17. conflicts=('mpv')
  18. options=(!emptydirs)
  19. install=mpv.install
  20. source=('git+http://github.com/mpv-player/mpv#branch=master')
  21. md5sums=('SKIP')
  22.  
  23. _gitname="mpv"
  24.  
  25. pkgver() {
  26. cd "$srcdir/$_gitname"
  27. microver="$(git log -1 --pretty=format:%h )"
  28. minorver="$(git rev-list --count HEAD)"
  29. echo "0.$minorver.$microver"
  30. }
  31.  
  32. build() {
  33.  
  34. cd "$srcdir/$_gitname"
  35.  
  36. ./configure --prefix=/usr \
  37. --confdir=/etc/mpv \
  38. --disable-lirc \
  39. --disable-lircc \
  40. --disable-joystick \
  41. --disable-radio \
  42. --disable-radio-capture \
  43. --disable-radio-v4l2 \
  44. --disable-rpath \
  45. --disable-libbs2b \
  46. --disable-direct3d \
  47. --disable-corevideo \
  48. --disable-cocoa \
  49. --disable-coreaudio --enable-gl --disable-pulse --disable-jack --disable-portaudio --enable-sdl2 --disable-pdf
  50.  
  51. make
  52. }
  53.  
  54. package() {
  55. cd "$srcdir/$_gitname"
  56. make -j1 DESTDIR="$pkgdir" install
  57.  
  58. install -d "$pkgdir"/usr/share/doc/mpv/examples
  59. install -m644 etc/{input,example,encoding-example-profiles}.conf \
  60. "$pkgdir"/usr/share/doc/mpv/examples
  61. install -m644 DOCS/{encoding.rst,tech-overview.txt} \
  62. "$pkgdir"/usr/share/doc/mpv
  63. install -m755 TOOLS/mpv_identify.sh "$pkgdir"/usr/bin
  64. }
Advertisement
Add Comment
Please, Sign In to add comment