Guest User

vlc-git integrated video PKGBUILD attempt (=failed)

a guest
Mar 26th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. related thread: https://bbs.archlinux.org/viewtopic.php?pid=1397249
  2.  
  3. pkgname='vlc-git'
  4. pkgver=2.2.r54383.g5389383
  5. pkgrel=1
  6. pkgdesc='A multi-platform MPEG, VCD/DVD, and DivX player. Development GIT Version.'
  7. arch=('i686' 'x86_64')
  8. url='http://www.videolan.org/vlc/'
  9. license=('LGPL2.1' 'GPL2')
  10. depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt4' 'libproxy'
  11. 'sdl_image' 'libdvdnav' 'libtiger' 'lua' 'libmatroska'
  12. 'zvbi' 'taglib' 'libmpcdec' 'ffmpeg' 'faad2' 'libupnp'
  13. 'libshout' 'libmad' 'libmpeg2' 'libmodplug' 'xcb-util-keysyms' 'libass' 'libtar'
  14. 'libxinerama')
  15. makedepends=('live-media' 'libnotify' 'libbluray' 'flac' 'kdelibs'
  16. 'fluidsynth' 'libdc1394' 'libavc1394' 'lirc-utils'
  17. 'libcaca' 'librsvg' 'portaudio' 'libgme' 'xosd'
  18. 'projectm' 'twolame' 'aalib' 'libmtp' 'libdvdcss'
  19. 'gnome-vfs' 'libgoom2' 'libtar' 'vcdimager' 'opus' 'libssh2'
  20. 'mesa' 'git' 'smbclient' 'libva')
  21. optdepends=('avahi: for service discovery using bonjour protocol'
  22. 'libnotify: for notification plugin'
  23. 'ncurses: for ncurses interface support'
  24. 'libdvdcss: for decoding encrypted DVDs'
  25. 'lirc-utils: for lirc plugin'
  26. 'libavc1394: for devices using the 1394ta AV/C'
  27. 'libdc1394: for IEEE 1394 plugin'
  28. 'kdelibs: KDE Solid hardware integration'
  29. 'libva-vdpau-driver: vdpau back-end for nvidia'
  30. 'libva-intel-driver: back-end for intel cards'
  31. 'libbluray: for Blu-Ray support'
  32. 'flac: for Free Lossless Audio Codec plugin'
  33. 'portaudio: for portaudio support'
  34. 'twolame: for TwoLAME mpeg2 encoder plugin'
  35. 'projectm: for ProjectM visualisation plugin'
  36. 'libcaca: for colored ASCII art video output'
  37. 'libgme: for libgme plugin'
  38. 'librsvg: for SVG plugin'
  39. 'gnome-vfs: for GNOME Virtual File System support'
  40. 'libgoom2: for libgoom plugin'
  41. 'vcdimager: navigate VCD with libvcdinfo'
  42. 'xosd: for xosd support'
  43. 'aalib: for ASCII art plugin'
  44. 'libmtp: for MTP devices support'
  45. 'fluidsynth: for synthesizer MIDI FluidSynth'
  46. 'smbclient: for SMB access plugin'
  47. 'libcdio: for audio CD playback support'
  48. 'ttf-freefont: for subtitle font '
  49. 'ttf-dejavu: for subtitle font'
  50. 'opus: for opus support'
  51. 'libssh2: for sftp support'
  52. 'lua-socket: for http interface')
  53. conflicts=('vlc' 'vlc-stable-git' 'vlc-dev')
  54. provides=('vlc')
  55. source=('git://git.videolan.org/vlc.git'
  56. 'vlc-2.0.7-vaapi-compat.patch')
  57. backup=('usr/share/vlc/lua/http/.hosts'
  58. 'usr/share/vlc/lua/http/dialogs/.hosts')
  59. options=('!libtool' '!emptydirs')
  60. md5sums=('SKIP'
  61. 'SKIP')
  62. install='vlc-git.install'
  63.  
  64. _gitroot='vlc'
  65.  
  66. pkgver() {
  67. cd "${srcdir}/$_gitroot"
  68. echo "2.2.r$(git rev-list --count master).g$(git log -1 --format="%h")"
  69. }
  70.  
  71. prepare() {
  72. cd "${srcdir}/vlc"
  73.  
  74. patch -Np1 -i "${srcdir}/vlc-2.0.7-vaapi-compat.patch"
  75.  
  76. sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
  77. sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
  78. }
  79.  
  80. build() {
  81. cd "${srcdir}/$_gitroot"
  82.  
  83. msg 'Generating necessary files...'
  84.  
  85. ./bootstrap
  86.  
  87. msg 'Done. Configuring VLC...'
  88.  
  89.  
  90. ./configure --prefix=/usr \
  91. --sysconfdir=/etc \
  92. --enable-faad \
  93. --enable-nls \
  94. --enable-lirc \
  95. --enable-ncurses \
  96. --enable-realrtsp \
  97. --enable-aa \
  98. --enable-vcdx \
  99. --enable-upnp \
  100. --enable-opus \
  101. --enable-wma-fixed \
  102. --enable-merge-ffmpeg \
  103. --disable-rpath \
  104. --enable-sftp \
  105. LUAC=/usr/bin/luac LUA_LIBS="`pkg-config --libs lua`" \
  106. RCC=/usr/bin/rcc-qt4
  107.  
  108. msg 'Done. Starting make...'
  109.  
  110. make
  111. }
  112.  
  113. package() {
  114. cd "$srcdir/$_gitroot"
  115. make PREFIX=/usr DESTDIR="$pkgdir" install
  116. }
Advertisement
Add Comment
Please, Sign In to add comment