void-packages/srcpkgs/elfutils/template
2016-04-02 13:00:42 +02:00

48 lines
1.2 KiB
Bash

# Template file for 'elfutils'
pkgname=elfutils
version=0.166
revision=1
build_style=gnu-configure
configure_args="--program-prefix=eu-"
hostmakedepends="automake libtool"
makedepends="zlib-devel bzip2-devel liblzma-devel"
short_desc="Utilities to handle ELF object files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://fedorahosted.org/elfutils/"
distfiles="https://fedorahosted.org/releases/e/l/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=3c056914c8a438b210be0d790463b960fc79d234c3f05ce707cbff80e94cba30
# Suppress certain warnings to not fail for -Werror
CFLAGS="-Wno-unused-result -Wno-format-nonliteral"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone musl-fts-devel musl-obstack" ;;
esac
post_extract() {
case "$XBPS_TARGET_MACHINE" in
*-musl) cp ${FILESDIR}/error.h lib
cp ${FILESDIR}/error.h src
esac
}
pre_configure() {
autoreconf -if
}
libelf_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so*"
vmove usr/lib/elfutils
}
}
elfutils-devel_package() {
depends="libelf>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}