# Template file for 'libdwarf'
pkgname=libdwarf
# See https://www.prevanders.net/dwarf.html#nfuture
reverts="20201020_1 20200825_1 20200719_1 20200114_1 20191104_2 20191104_1 20191002_1 20190529_1 20190110_1 20180809_1 20180527_1 20180129_1 20170709_2 20170709_1 20170416_1 20161124_1 20161021_1 20161001_1 20160923_1 20160613_1 20160507_1 20160115_1 20150507_3 20150507_2 20150507_1"
version=2.3.2
revision=1
build_style=gnu-configure
configure_args="--enable-shared --enable-dwarfgen"
makedepends="elfutils-devel"
checkdepends="python3"
short_desc="DWARF Debugging Information Format Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://www.prevanders.net/dwarf.html"
changelog="https://github.com/davea42/libdwarf-code/blob/main/ChangeLog"
distfiles="https://www.prevanders.net/libdwarf-${version}.tar.xz"
checksum=7992e7b9019ebfabdda5773e86243517c48cf89fafed3209e853692bc9573efd

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

libdwarf-doc_package() {
	short_desc+=" - documentation"
	pkg_install() {
		for i in README NEWS doc/*.pdf ; do
			vdoc $i
		done
	}
}
