Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

vlc-git PKGBUILD - 28 july 2013

By: fredbezies on Jul 28th, 2013  |  syntax: None  |  size: 3.82 KB  |  hits: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: heaven <aheaven87 at gmail dot com>
  2. # Contributor: graysky <graysky at archlinux dot us>
  3. # Contributor: Arkham <arkham at archlinux dot us>
  4. # Contributor: MacWolf <macwolf at archlinux dot de>
  5.  
  6. pkgname='vlc-git'
  7. pkgver=2.2.r54312.g9e7979a
  8. pkgrel=1
  9. pkgdesc='A multi-platform MPEG, VCD/DVD, and DivX player. Development GIT Version.'
  10. arch=('i686' 'x86_64')
  11. url='http://www.videolan.org/vlc/'
  12. license=('LGPL2.1' 'GPL2')
  13. depends=('a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'qt4' 'kdelibs'
  14.          'sdl_image' 'libdvdnav' 'libtiger' 'libmatroska'
  15.          'zvbi' 'taglib' 'libmpcdec' 'faad2' 'libupnp'
  16.          'libshout' 'libmad' 'libmpeg2'
  17.          'chromaprint' 'xcb-util-keysyms')
  18. makedepends=('live-media' 'libnotify' 'libbluray' 'flac'
  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' 'git' 'smbclient' 'libva')
  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. conflicts=('vlc','vlc-stable-git','vlc-dev')
  56. provides=('vlc')
  57. source=('git://git.videolan.org/vlc.git')
  58. backup=('usr/share/vlc/lua/http/.hosts'
  59.         'usr/share/vlc/lua/http/dialogs/.hosts')
  60. options=('!libtool' '!emptydirs')
  61. md5sums=('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. build() {
  72.   cd "$srcdir/$_gitroot"
  73.  
  74.   msg 'Generating necessary files...'
  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.   ./bootstrap
  80.  
  81.   msg 'Done. Configuring VLC...'
  82.  
  83.   ./configure --prefix=/usr \
  84.               --sysconfdir=/etc \
  85.               --enable-lirc \
  86.               --enable-realrtsp \
  87.               --enable-aa \
  88.               --enable-vcdx \
  89.               --enable-wma-fixed \
  90.               --enable-merge-ffmpeg \
  91.               --disable-rpath \
  92.               --disable-lua \
  93.               RCC=/usr/bin/rcc-qt4
  94.  
  95.   msg 'Done. Starting make...'
  96.  
  97. make
  98. #  make CFLAGS="$CFLAGS -fPIC"
  99. }
  100.  
  101. package() {
  102.     cd "$srcdir/$_gitroot"
  103.     make PREFIX=/usr DESTDIR="$pkgdir" install
  104. }