description="Linker, assembler, and other tools for handling object files."
url="http://sources.redhat.com/binutils/"
maintainer="Tristan Gingold ( gingold at adacore dot com ),Alan Modra ( amodra at bigpond dot net dot au )"
packager="tnut at nutyx dot org"
name=binutils
version=2.28
release=1

source=(http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.bz2)
build()
{
cd binutils-$version

mkdir -v build
cd build

../configure --prefix=/usr \
--enable-plugins \
--enable-shared --disable-werror \
--with-system-zlib

make tooldir=/usr

# make  LDFLAGS="" -k check || true

# make tooldir=/usr DESTDIR=$PKG install
make tooldir=/usr DESTDIR=$PKG install

rm -rf $PKG/usr/share/info/dir
}
devel()
{
cd $PKG
bsdtar -r -f \
$PKGMK_PACKAGE_DIR/${name}.${group}${PKGMK_BUILDVER}`uname -m`.$PKGMK_PACKAGE_EXT \
usr/include usr/lib/ldscripts
rm -r usr/include \
usr/lib/ldscripts
}
