# Template file for 'libcdio'
pkgname=libcdio
version=0.93
revision=3
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="ncurses-devel libcddb-devel"
short_desc="CD-ROM access library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://www.gnu.org/software/libcdio/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=f8276629226c7e1e74209b66ca421d09d6aec87f72f60ae9b1d3debd0a13dda8

pre_configure() {
	autoreconf -fi
}

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