aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdvdread/APKBUILD
blob: 2e9eb0e39a2008cebad31f4942bfa48f8ed4c4c0 (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
47
48
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvdread
pkgver=5.0.3
pkgrel=0
pkgdesc="a simple foundation for reading DVD video disks"
url="http://dvdnav.mplayerhq.hu/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/libdvdread-$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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="b7b7d2a782087ed2a913263087083715  libdvdread-5.0.3.tar.bz2"
sha256sums="321cdf2dbdc83c96572bc583cd27d8c660ddb540ff16672ecb28607d018ed82b  libdvdread-5.0.3.tar.bz2"
sha512sums="1ca438f0b5c406549eec62e1abef1e8745b9f932bcd30a3194ee9e37995b269ec8f1652a24cc3d2cb11ddb964e4a47a06e5405f9402e616586ff6263a1af3fc2  libdvdread-5.0.3.tar.bz2"