void-packages/srcpkgs/elfutils/template
Đoàn Trần Công Danh 8264c2101f elfutils: update to 0.181.
sgn: There are some test failure due to the order of output.
Close: #24861
2020-09-13 13:08:43 +07:00

48 lines
1.2 KiB
Bash

# Template file for 'elfutils'
pkgname=elfutils
version=0.181
revision=1
build_style=gnu-configure
configure_args="--program-prefix=eu- --disable-debuginfod --disable-libdebuginfod"
hostmakedepends="automake libtool pkg-config"
makedepends="bzip2-devel liblzma-devel zlib-devel"
short_desc="Utilities to handle ELF object files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://sourceware.org/elfutils/"
distfiles="https://sourceware.org/${pkgname}/ftp/${version}/${pkgname}-${version}.tar.bz2"
checksum=29a6ad7421ec2acfee489bb4a699908281ead2cb63a20a027ce8804a165f0eb3
CFLAGS="-Wno-error"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" argp-standalone musl-fts-devel musl-obstack-devel"
fi
post_extract() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
cp ${FILESDIR}/error.h lib
cp ${FILESDIR}/error.h src
fi
}
pre_configure() {
autoreconf -if
}
libelf_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
elfutils-devel_package() {
depends="libelf>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}