aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdvbpsi/APKBUILD
blob: 8e4fe3659733297452c66d4e76a973cfc2a22288 (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
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvbpsi
pkgver=1.2.0
pkgrel=0
pkgdesc="A library decoding and generating MPEG TS and DVB PSI tables"
url="http://www.videolan.org/developers/libdvbpsi.html"
arch="all"
license="GPL"
depends=
makedepends=""
subpackages="$pkgname-dev"
source="http://download.videolan.org/pub/libdvbpsi/$pkgver/$pkgname-$pkgver.tar.bz2
	fix-includes.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	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 \
		--enable-release \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="69e38e93c4db4f2a58cbd0b6f9f38228  libdvbpsi-1.2.0.tar.bz2
0f238bf0adb647785f466927d9c37d3d  fix-includes.patch"
sha256sums="36d9b233306e48b58999e87864253b564e20932ed46a485e44ef7058f1f927e8  libdvbpsi-1.2.0.tar.bz2
0d0fdd1cf6e567558a1357d9e2e82124bfa273c3cd6c64fb70747660f52931fe  fix-includes.patch"
sha512sums="951db13f5645d4d6a160719fc6ac97fd31a32d5d17cb8e26db94702e65b6fac3d4e7a99c3c417e09fe5ce33f3b0c0ef86206c77b36816dcd8a3bd5b0bb4a9684  libdvbpsi-1.2.0.tar.bz2
f612bf80b07ec37a83477a37d78971c4bd4331eec86686a8bc7b247f43df2c047c89de419d5cef0b960de2032daedc81a4c380802c76b4dc081e1c09ad364dcb  fix-includes.patch"