aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdvdnav/APKBUILD
blob: afc00a8f30b494289234764bfeda97434b5a0c13 (plain) (blame)
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
47
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvdnav
pkgver=5.0.3
pkgrel=0
pkgdesc="a library for sophisticated DVD navigation features"
url="http://dvdnav.mplayerhq.hu/"
arch="all"
license="GPL"
depends=""
depends_dev="libdvdread-dev>=5.0.3"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/libdvdnav-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e9ea4de3bd8f204e61301d407d09f033  libdvdnav-5.0.3.tar.bz2"
sha256sums="5097023e3d2b36944c763f1df707ee06b19dc639b2b68fb30113a5f2cbf60b6d  libdvdnav-5.0.3.tar.bz2"
sha512sums="d6d0519f654649bd65b3029224191e7d6acc893d94e8578e435d77b75327584e9f44410a062c1fc60c6211f5bea6b3971228d84de595808733ab7356980e0123  libdvdnav-5.0.3.tar.bz2"