# Maintainer: Tyler Veness _target="arm-frc-linux-gnueabi" pkgname=${_target}-binutils pkgver=2.24 pkgrel=2 pkgdesc="A set of programs to assemble and manipulate binary and object files (${_target})" arch=(i686 x86_64) license=(GPL) options=(!libtool !buildflags !emptydirs) url="http://sources.redhat.com/binutils" groups=('frc-2015') depends=('glibc') source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2) md5sums=('e0f71a7b2ddab0f8612336ac81d9636b') build() { cd "$srcdir/binutils-${pkgver}" find -name config.cache -exec rm {} \; [ $NOEXTRACT -eq 1 ] || ./configure \ --prefix=/usr \ --target=${_target} \ --with-pkgversion='GNU Binutils for FRC' \ --with-sysroot=/usr/${_target} \ --disable-multilib \ --disable-nls \ --enable-lto \ --disable-libiberty-install \ --disable-werror make configure-host make } package() { cd "$srcdir/binutils-${pkgver}" make DESTDIR=$pkgdir install rm -rf "$pkgdir"/usr/share/info }