updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cross-arm-linux-gnueabi-binutils / PKGBUILD
blob7706af33b87f1e81aef0d40d4b1b849d79d453bb
1 # Maintainer: Chuan Ji <jichuan89@gmail.com>
3 _target=arm-linux-gnueabi
4 pkgname=cross-${_target}-binutils
5 pkgver=2.21.1
6 pkgrel=1
7 pkgdesc="A set of programs to assemble and manipulate binary and object files"
8 arch=(i686 x86_64)
9 license=(GPL)
10 options=(!libtool)
11 url="http://sources.redhat.com/binutils"
12 depends=('glibc')
13 source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
14 md5sums=('bde820eac53fa3a8d8696667418557ad')
16 build() {
17   cd $srcdir/binutils-${pkgver}
19   [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr \
20         --program-prefix=${_target}- \
21         --enable-shared \
22         --disable-multilib \
23         --with-lib-path=/usr/lib/binutils/${_target} \
24         --with-local-prefix=/usr/lib/${_target} \
25         --disable-nls \
26         --target=${_target} \
27         --host=$CHOST \
28         --build=$CHOST \
30   make configure-host
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