blob: d73db5a9dd81b7184b79b7837ad79bda77c0352d (
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
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 157790 2012-04-29 15:02:33Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Andrew Cook <ariscop@gmail.com>
pkgname=libbluray
pkgver=0.2.2
pkgrel=1
pkgdesc="Library to access Blu-Ray disks for video playback"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.videolan.org/developers/libbluray.html"
license=('LGPL2.1')
depends=('libxml2')
if [ "$CARCH" != "mips64el" ]; then
makedepends=('apache-ant' 'jdk7-openjdk')
optdepends=('java-environment: Blu-ray Disc Java support library')
fi
options=(!libtool)
source=(ftp://ftp.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
sha512sums=('a27eaa929ef05c544beb966a24dfc5425546d6035bfb3e86dc60987b8a4761031ce27c3836a64f71cc76b5308c3cd75efb3bc1f238185819385477e64883888a')
build() {
cd "$pkgname-$pkgver"
if [ "$CARCH" != "mips64el" ]; then
. /etc/profile.d/jdk.sh
./configure --prefix=/usr \
--enable-bdjava \
--with-jdk=${JAVA_HOME} \
--disable-static
else
./configure --prefix=/usr \
--disable-static
fi
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
#install bdj
if [ "$CARCH" != "mips64el" ]; then
install -Dm644 src/.libs/libbluray.jar "$pkgdir/usr/share/java/libbluray.jar"
fi
}
# vim:set ts=2 sw=2 et:
|