# Template file for 'elfutils'
pkgname=elfutils
version=0.158
revision=1
build_style=gnu-configure
configure_args="--program-prefix=eu-"
makedepends="zlib-devel bzip2-devel liblzma-devel"
short_desc="Utilities to handle ELF object files"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="https://fedorahosted.org/elfutils/"
distfiles="https://fedorahosted.org/releases/e/l/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=be27af5c21352f53e010342bf1c68e0b9e18232dbf3adec7e2f9b41f6bbe397d

libelf_package() {
	short_desc+=" - runtime library"
	pkg_install() {
		vmove "usr/lib/*.so*"
		vmove usr/lib/elfutils
	}
}

elfutils-devel_package() {
	replaces="libelf-devel>=0"
	depends="libelf>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
	}
}