# Template file for 'cross-bpf-binutils'
_triplet=bpf
_pkgname=binutils
pkgname=cross-${_triplet}-${_pkgname}
version=2.44
revision=1
build_style=gnu-configure
configure_args="
 --disable-nls
 --enable-deterministic-archives
 --enable-interwork
 --enable-ld
 --enable-multilib
 --host=${XBPS_CROSS_TRIPLET}
 --prefix=/usr
 --target=${_triplet}
 --with-gnu-as
 --with-gnu-ld
 --with-sysroot=/usr/${_triplet}
 --with-system-zlib
 --without-isl
"
hostmakedepends="autoconf automake bison flex perl"
makedepends="zlib-devel"
depends="binutils-doc"
short_desc="GNU binary utilities"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237
nocross=yes

post_install() {
	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep.*
	rm -fr ${DESTDIR}/usr/share/info
}
