Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2011  |  syntax: Bash  |  size: 0.95 KB  |  hits: 274  |  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: Andrew Cook <ariscop@gmail.com>
  2.  
  3. pkgname=libbluray
  4. pkgver=20110704
  5. pkgrel=1
  6. pkgdesc="Blu-Ray access library"
  7. arch=('i686' 'x86_64')
  8. license=('LGPL')
  9. url="http://www.videolan.org/developers/libbluray.html"
  10. depends=('openssl')
  11. makedepends=('git' 'apache-ant' 'java-environment')
  12. optdepends=('libaacs' 'libbdplus' 'java-runtime')
  13. source=()
  14. md5sums=()
  15. provides=('libbluray')
  16. conflicts=('libbluray')
  17.  
  18. _gitroot="git://git.videolan.org/libbluray.git"
  19. _gitname="libbluray"
  20.  
  21. build() {
  22.     msg "Connecting to GIT server..."
  23.  
  24.         if [ ! -d ${srcdir}/$_gitname ] ; then
  25.             git clone $_gitroot
  26.             cd ${srcdir}/libbluray    
  27.             git checkout -b new e8e400a
  28.         fi
  29.  
  30.     cd ${srcdir}/libbluray
  31.    
  32.     msg "GIT checkout done or server timeout"
  33.    
  34.     msg "Starting build..."
  35.        
  36.     ./bootstrap
  37.     ./configure --prefix=/ --with-jdk=$J2SDKDIR --enable-bdjava
  38.     make || return 1
  39.     make DESTDIR=${pkgdir}/usr install || return 1    
  40. }