summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-15 03:35:52 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-15 03:35:52 -0300
commit3e794aedafd5b7f956a6d183c8c518988f875152 (patch)
treefbdb9a02a9c750d8a25cbef740808f89d22df2ff
parenta14e3db6df6e081e1684fc34db70388161ebe7df (diff)
cross-mips64el-unknown-linux-gnu-binutils
-rw-r--r--cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD b/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD
new file mode 100644
index 0000000..e497b04
--- /dev/null
+++ b/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
+#
+
+_pkgname=binutils
+_target=mips64el-unknown-linux-gnu
+_sysroot=/usr/lib/cross-${_target}
+
+pkgname=cross-${_target}-binutils
+pkgver=2.21
+pkgrel=1
+pkgdesc="A set of programs to assemble and manipulate binary and object files for cross ${_target}"
+license=('GPL')
+arch=('i686' 'x86_64')
+source=(http://ftp.gnu.org/gnu/$_pkgname/$_pkgname-$pkgver.tar.bz2)
+groups=('cross-mips64el')
+depends=('glibc>=2.13' 'zlib')
+makedepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+
+build() {
+ cd ${srcdir}
+ mkdir binutils-build
+ cd binutils-build
+
+ $srcdir/$_pkgname-$pkgver/configure \
+ --prefix=$_sysroot \
+ --target=$_target \
+ --program-prefix=$_target- \
+ --with-sysroot=$_sysroot \
+ --disable-nls \
+ --disable-werror
+
+ make
+}
+
+check() {
+ cd ${srcdir}/binutils-build
+
+ # do not abort on errors - manually check log files
+ make -k -j1 check || true
+}
+
+package() {
+ cd ${srcdir}/binutils-build
+ make DESTDIR=${pkgdir} install
+}
+md5sums=('c84c5acc9d266f1a7044b51c85a823f5')