[ create a new paste ] login | about

Link: http://codepad.org/d41XJR1W    [ raw code | fork ]

Plain Text, pasted on Apr 16:
# Maintainer: Andreas Messer <andi@bastelmap.de>
# Based on arm-elf-binutils 2.22-1
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

_xprefix=/usr
_target=arm-eabi

pkgname=${_target}-binutils
pkgver=2.23.2
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' 'zlib')
conflicts=('cross-arm-elf-binutils')
source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
md5sums=('4f8fa651e35ef262edc01d60fb45702e')

prepare() {
  cd ${srcdir}/binutils-${pkgver}

  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}

build() {
  cd $srcdir/binutils-${pkgver}

  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=${_xprefix} \
	--program-prefix=${_target}- \
	--enable-shared \
	--enable-multilib \
	--disable-nls \
	--target=${_target} \
	--with-sysroot=/usr/${CHOST}/${_target} 

#	--host=$CHOST \
#	--build=$CHOST \
#	--with-lib-path=${_xprefix}/${_target}/lib \

  make configure-host
  make tooldir=$pkgdir/${_xprefix}
}

package() {
  cd $srcdir/binutils-${pkgver}
  make prefix=$pkgdir/${_xprefix} tooldir=$pkgdir/${_xprefix} install

  cp -v include/libiberty.h $pkgdir/${_xprefix}/${CHOST}/${_target}/include

  rm -f $pkgdir/usr/bin/ar
  rm -f $pkgdir/usr/bin/as
  rm -f $pkgdir/usr/bin/ld
  rm -f $pkgdir/usr/bin/nm
  rm -f $pkgdir/usr/bin/objdump
  rm -f $pkgdir/usr/bin/ranlib
  rm -f $pkgdir/usr/bin/strip
  rm -f $pkgdir/usr/bin/objcopy
  rm -f $pkgdir/usr/lib/libiberty.a
  rm -rf $pkgdir/usr/share/info
}


Create a new paste based on this one


Comments: