# Template file for 'libcdio'
pkgname=libcdio
version=2.3.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="ncurses-devel libcddb-devel"
short_desc="CD-ROM access library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/libcdio/"
changelog="https://raw.githubusercontent.com/libcdio/libcdio/refs/heads/master/NEWS.md"
distfiles="https://github.com/libcdio/libcdio/releases/download/${version}/libcdio-${version}.tar.gz"
checksum=37bcb13296febbcff9dc4485834bac09212cb463c31fcea52f70ee1dd3a5a5de

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
	}
}
