summaryrefslogtreecommitdiffstats
path: root/main/libdvdnav/APKBUILD
blob: 20730cbec6c0489b20ffed99b3cb722d8186684f (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvdnav
pkgver=4.2.1
pkgrel=0
pkgdesc="a library for sophisticated DVD navigation features"
url="http://dvdnav.mplayerhq.hu/"
arch="all"
license="GPL"
depends=""
depends_dev="libdvdread-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://dvdnav.mplayerhq.hu/releases/$pkgname-$pkgver.tar.xz"

_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"
	./configure2 --prefix=/usr --disable-static --disable-debug --enable-shared || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="8a1b2ebfe81daecb590893cb9093f832  libdvdnav-4.2.1.tar.xz"
sha256sums="7fca272ecc3241b6de41bbbf7ac9a303ba25cb9e0c82aa23901d3104887f2372  libdvdnav-4.2.1.tar.xz"
sha512sums="3b7b18069b77a5a48ff5ad74f823b88f5dbf5058f11737ffef9d388d755616a581688c95dc1c3d9ab2377bce1dafaf53c9d46981a12588e6b3d8b70ce582e756  libdvdnav-4.2.1.tar.xz"