1 # Maintainer: Chuan Ji <jichuan89@gmail.com>
3 _target=arm-linux-gnueabi
4 pkgname=cross-${_target}-binutils
7 pkgdesc="A set of programs to assemble and manipulate binary and object files"
11 url="http://sources.redhat.com/binutils"
13 source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
14 md5sums=('bde820eac53fa3a8d8696667418557ad')
17 cd $srcdir/binutils-${pkgver}
19 [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr \
20 --program-prefix=${_target}- \
23 --with-lib-path=/usr/lib/binutils/${_target} \
24 --with-local-prefix=/usr/lib/${_target} \
31 make tooldir=$pkgdir/usr
32 make prefix=$pkgdir/usr tooldir=$pkgdir/usr install
34 rm -f $pkgdir/usr/man/man1/{dlltool,nlmconv,windres}*
36 rm -f $pkgdir/usr/bin/ar
37 rm -f $pkgdir/usr/bin/as
38 rm -f $pkgdir/usr/bin/ld
39 rm -f $pkgdir/usr/bin/nm
40 rm -f $pkgdir/usr/bin/objdump
41 rm -f $pkgdir/usr/bin/ranlib
42 rm -f $pkgdir/usr/bin/strip
43 rm -f $pkgdir/usr/bin/objcopy
44 rm -f $pkgdir/usr/lib/libiberty.a
45 rm -rf $pkgdir/usr/share