# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libdvbpsi
pkgver=1.3.3
pkgrel=1
pkgdesc="A library decoding and generating MPEG TS and DVB PSI tables"
url="http://www.videolan.org/developers/libdvbpsi.html"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev"
source="https://download.videolan.org/pub/libdvbpsi/$pkgver/libdvbpsi-$pkgver.tar.bz2
	fix-includes.patch
	"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-release \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="70f9e783a947e026ea50afe98ad2b3bfce075bd8d76932f73a6253b077a3a180aa632e9a1fff20308e2f0f3f881d727b4e4aad9b8da2b384edf9a3a0f9eacc69  libdvbpsi-1.3.3.tar.bz2
f612bf80b07ec37a83477a37d78971c4bd4331eec86686a8bc7b247f43df2c047c89de419d5cef0b960de2032daedc81a4c380802c76b4dc081e1c09ad364dcb  fix-includes.patch"
