# Template file for 'libdvdnav'
pkgname=libdvdnav
version=6.1.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libdvdcss-devel libdvdread-devel"
short_desc="Library to navigate DVDs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.videolan.org/developers/libdvdnav.html"
changelog="https://code.videolan.org/videolan/libdvdnav/blob/master/ChangeLog"
distfiles="https://download.videolan.org/pub/videolan/libdvdnav/${version}/libdvdnav-${version}.tar.bz2"
checksum=c191a7475947d323ff7680cf92c0fb1be8237701885f37656c64d04e98d18d48

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