# $Id: PKGBUILD 1638 2009-08-27 06:17:49Z spupykin $ # Maintainer: Sergej Pupykin pkgname=cross-arm-elf-binutils pkgver=2.19.1 pkgrel=1 pkgdesc="A set of programs to assemble and manipulate binary and object files" arch=(i686 x86_64) license=(GPL) options=(!libtool) url="http://sources.redhat.com/binutils" depends=('glibc') source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.gz) md5sums=('ad3f2b5fdcd599a772ad75fec2c384d8') _prefix=/usr build() { cd ${startdir}/src/binutils-${pkgver} ./configure --prefix=$_prefix \ --program-prefix=arm-elf- \ --enable-shared \ --disable-multilib \ --with-lib-path=$_prefix/lib/binutils/arm-elf \ --disable-nls \ --target=arm-elf \ --host=$CHOST \ --build=$CHOST make configure-host || return 1 make tooldir=${startdir}/pkg/$_prefix || return 1 make prefix=${startdir}/pkg/$_prefix tooldir=${startdir}/pkg/$_prefix install || return 1 cp -v include/libiberty.h $startdir/pkg/$_prefix/lib/binutils/arm-elf rm -f ${startdir}/pkg/$_prefix/man/man1/{dlltool,nlmconv,windres}* || return 1 rm -f $startdir/pkg/usr/bin/ar || return 1 rm -f $startdir/pkg/usr/bin/as || return 1 rm -f $startdir/pkg/usr/bin/ld || return 1 rm -f $startdir/pkg/usr/bin/nm || return 1 rm -f $startdir/pkg/usr/bin/objdump || return 1 rm -f $startdir/pkg/usr/bin/ranlib || return 1 rm -f $startdir/pkg/usr/bin/strip || return 1 rm -f $startdir/pkg/usr/bin/objcopy || return 1 rm -f $startdir/pkg/usr/lib/libiberty.a || return 1 rm -rf $startdir/pkg/usr/share }