summaryrefslogtreecommitdiffstats
path: root/abs/extra/libbluray-git/PKGBUILD
blob: c83dce33e2163c785a209fb88a0c13386a20d1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Andrew Cook <ariscop@gmail.com>

pkgname=libbluray-git
pkgver=20101110
pkgrel=1
pkgdesc="Blu-Ray access library"
arch=('i686' 'x86_64')
depends=('doxygen')
license=('LGPL')
url="http://www.videolan.org/developers/libbluray.html"
makedepends=('git')
source=()
md5sums=()
provides=('libbluray')
conflicts=('libbluray')

_gitroot="git://git.videolan.org/libbluray.git"
_gitname="libbluray"

build() {
    msg "Connecting to GIT server..."

    if [ -d ${srcdir}/$_gitname ] ; then
        cd $_gitname && git pull origin
        msg "The local files are updated."
    else
        git clone $_gitroot
    fi
    
    msg "GIT checkout done or server timeout"
    msg "Starting make..."

    cd ${srcdir}/libbluray
    ./bootstrap
    ./configure --prefix=/
    make || return 1
    make DESTDIR=${pkgdir}/usr install || return 1    
}