Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. # Maintainer: heaven <aheaven87 at gmail dot com>
  2. # Contributor: Arkham <arkham at archlinux dot us>
  3. # Contributor: MacWolf <macwolf at archlinux dot de>
  4.  
  5. pkgname='vlc-git'
  6. pkgver=20130102
  7. pkgrel=1
  8. pkgdesc='A multi-platform MPEG, VCD/DVD, and DivX player. Development GIT Version.'
  9. arch=('i686' 'x86_64')
  10. url='http://www.videolan.org/vlc/'
  11. license='GPL'
  12.  
  13. depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt' 'libproxy'
  14. 'sdl_image' 'libdvdnav' 'libtiger' 'lua51' 'libmatroska'
  15. 'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
  16. 'libshout' 'libmad' 'libmpeg2' 'libmodplug' 'libass'
  17. 'xcb-util-keysyms')
  18. makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'kdelibs'
  19. 'fluidsynth' 'libdc1394' 'libavc1394' 'lirc-utils'
  20. 'libcaca' 'librsvg' 'portaudio' 'libgme' 'xosd'
  21. 'projectm' 'twolame' 'aalib' 'libmtp' 'libdvdcss'
  22. 'gnome-vfs' 'libgoom2' 'libtar' 'vcdimager' 'opus' 'libssh2'
  23. 'mesa')
  24. optdepends=('avahi: for service discovery using bonjour protocol'
  25. 'libnotify: for notification plugin'
  26. 'ncurses: for ncurses interface support'
  27. 'libdvdcss: for decoding encrypted DVDs'
  28. 'lirc-utils: for lirc plugin'
  29. 'libavc1394: for devices using the 1394ta AV/C'
  30. 'libdc1394: for IEEE 1394 plugin'
  31. 'kdelibs: KDE Solid hardware integration'
  32. 'libva-vdpau-driver: vdpau back-end for nvidia'
  33. 'libva-intel-driver: back-end for intel cards'
  34. 'libbluray: for Blu-Ray support'
  35. 'flac: for Free Lossless Audio Codec plugin'
  36. 'portaudio: for portaudio support'
  37. 'twolame: for TwoLAME mpeg2 encoder plugin'
  38. 'projectm: for ProjectM visualisation plugin'
  39. 'libcaca: for colored ASCII art video output'
  40. 'libgme: for libgme plugin'
  41. 'librsvg: for SVG plugin'
  42. 'gnome-vfs: for GNOME Virtual File System support'
  43. 'libgoom2: for libgoom plugin'
  44. 'vcdimager: navigate VCD with libvcdinfo'
  45. 'xosd: for xosd support'
  46. 'aalib: for ASCII art plugin'
  47. 'libmtp: for MTP devices support'
  48. 'fluidsynth: for synthesizer MIDI FluidSynth'
  49. 'smbclient: for SMB access plugin'
  50. 'libcdio: for audio CD playback support'
  51. 'ttf-freefont: for subtitle font '
  52. 'ttf-dejavu: for subtitle font'
  53. 'opus: for opus support'
  54. 'libssh2: for sftp support')
  55.  
  56. backup=('usr/share/vlc/lua/http/.hosts'
  57. 'usr/share/vlc/lua/http/dialogs/.hosts')
  58. options=('!libtool' '!emptydirs')
  59.  
  60. conflicts='vlc'
  61. provides='vlc'
  62. install='vlc-git.install'
  63.  
  64. source=()
  65. md5sums=()
  66.  
  67. _gitroot='git://git.videolan.org/vlc.git'
  68. _gitname='vlc'
  69. _buildir=${_gitname}-build
  70.  
  71. build() {
  72. cd ${srcdir}
  73.  
  74. msg 'Connecting to GIT server...'
  75.  
  76. if [ -d ${_gitname} ]; then
  77. cd ${_gitname} && git pull origin
  78. cd ..
  79. else
  80. git clone ${_gitroot}
  81. fi
  82.  
  83. msg 'GIT checkout done or server timeout.'
  84.  
  85. if [ -d ${_buildir} ]; then
  86. msg 'Cleaning previous build...'
  87. rm -rf ${_buildir}
  88. fi
  89.  
  90. git clone ${_gitname} ${_buildir}
  91. cd ${_buildir}
  92.  
  93. msg 'Generating necessary files...'
  94.  
  95. sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
  96. sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
  97.  
  98. ./bootstrap
  99.  
  100. msg 'Generating done.'
  101. msg 'Configuring VLC...'
  102.  
  103. ./configure --prefix=/usr \
  104. --sysconfdir=/etc \
  105. --disable-rpath \
  106. --enable-faad \
  107. --enable-nls \
  108. --enable-lirc \
  109. --enable-pvr \
  110. --enable-ncurses \
  111. --enable-realrtsp \
  112. --enable-xosd \
  113. --enable-aa \
  114. --enable-vcdx \
  115. --enable-upnp \
  116. --enable-opus \
  117. --enable-sftp \
  118. LUAC=luac5.1
  119.  
  120. msg 'Starting make...'
  121.  
  122. make
  123. make DESTDIR=${pkgdir} install
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement