updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libbluray-git / PKGBUILD
blob771f5b3ef0a85af0af429ab340d2511424491a2a
1 # Maintainer: Andrew Cook <ariscop@gmail.com>
3 pkgname=libbluray-git
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')
18 _gitroot="git://git.videolan.org/libbluray.git"
19 _gitname="libbluray"
21 build() {
22     msg "Connecting to GIT server..."
24     if [ -d ${srcdir}/$_gitname ] ; then
25         cd $_gitname && git pull origin
26     else
27         git clone $_gitroot
28     fi
29     
30     msg "GIT checkout done or server timeout"
31     msg "Starting build..."
32         
33     cd ${srcdir}/libbluray
34     ./bootstrap
35     ./configure --prefix=/ --with-jdk=$J2SDKDIR --enable-bdjava
36     make || return 1
37     make DESTDIR=${pkgdir}/usr install || return 1