summaryrefslogtreecommitdiff
path: root/~fauno/mips64el-unknown-linux-gnu-binutils
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-09 14:36:14 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-01-09 14:36:14 -0300
commitba1db1c573bd9e332d8b21f8cb59eac7f48ee1ab (patch)
tree7e8019a5fd07278e59cc1ed6102b6901cf823bba /~fauno/mips64el-unknown-linux-gnu-binutils
parentb05e7b6f115817987cd0eb33f039bcea10156d9f (diff)
downloadabslibre-ba1db1c573bd9e332d8b21f8cb59eac7f48ee1ab.tar.gz
abslibre-ba1db1c573bd9e332d8b21f8cb59eac7f48ee1ab.tar.bz2
abslibre-ba1db1c573bd9e332d8b21f8cb59eac7f48ee1ab.zip
~fauno/mips64el-unknown-linux-gnu-binutils-2.22-1
Diffstat (limited to '~fauno/mips64el-unknown-linux-gnu-binutils')
-rw-r--r--~fauno/mips64el-unknown-linux-gnu-binutils/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/~fauno/mips64el-unknown-linux-gnu-binutils/PKGBUILD b/~fauno/mips64el-unknown-linux-gnu-binutils/PKGBUILD
new file mode 100644
index 000000000..3571f5502
--- /dev/null
+++ b/~fauno/mips64el-unknown-linux-gnu-binutils/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 60835 2011-12-18 22:14:40Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+_cross=mips64el-unknown-linux-gnu
+pkgname=${_cross}-binutils
+pkgver=2.22
+pkgrel=1
+_date=20111227
+_xprefix=/usr
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=(i686 x86_64)
+group=('mips64el-devel')
+license=(GPL)
+options=(!libtool)
+url="http://www.gnu.org/software/binutils/"
+depends=('glibc' 'zlib')
+#makedepends=("${_cross}-libtool")
+source=(ftp://ftp.archlinux.org/other/binutils/binutils-${pkgver}_${_date}.tar.bz2)
+md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d')
+
+build() {
+ cd $srcdir/binutils
+
+ #export PATH=/usr/${_cross}/bin/:$PATH
+
+ [ $NOEXTRACT -eq 1 ] || ./configure --prefix=${_xprefix} \
+ --program-prefix=${_cross}- \
+ --enable-shared \
+ --disable-multilib \
+ --with-lib-path=${_xprefix}/lib/binutils/${_cross} \
+ --disable-nls \
+ --target=${_cross} \
+ --host=${CHOST} \
+ --build=${CHOST} \
+ --with-sysroot=/usr/${CHOST}/${_cross} \
+
+ make configure-host
+ make tooldir=$pkgdir/${_xprefix}
+
+}
+
+package() {
+ cd $srcdir/binutils
+
+ make prefix=$pkgdir/${_xprefix} tooldir=$pkgdir/${_xprefix} install
+
+ mkdir -p $pkgdir/${_xprefix}/lib/binutils/${_cross}
+ cp -v include/libiberty.h $pkgdir/${_xprefix}/lib/binutils/${_cross}
+
+ rm -f $pkgdir/${_xprefix}/man/man1/{dlltool,nlmconv,windres}*
+
+ 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
+}