# Template file for 'libdvdread'
pkgname=libdvdread
version=4.2.1
revision=1
build_style=gnu-configure
hostmakedepends="libtool automake"
short_desc="DVD access library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://dvdnav.mplayerhq.hu"
distfiles="http://dvdnav.mplayerhq.hu/releases/$pkgname-$version.tar.xz"
checksum=af9b98f049580a6521d56c978b736d3d609562dd12955e11d50e26d97542dcd4

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

libdvdread-devel_package() {
	depends="libdvdread>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin
		vmove usr/include
		vmove usr/share
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
