diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-09 17:41:25 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-09 17:41:25 -0300 |
commit | d073b0c4e5b66e0d67350c9a3de9cee04f9b99cc (patch) | |
tree | ae1a1d78fde8a6d60ead702d87cb3062c13968f3 /cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD | |
parent | bd620b852c29c942213df91e6f567637979c394e (diff) | |
download | abslibre-d073b0c4e5b66e0d67350c9a3de9cee04f9b99cc.tar.gz abslibre-d073b0c4e5b66e0d67350c9a3de9cee04f9b99cc.tar.bz2 abslibre-d073b0c4e5b66e0d67350c9a3de9cee04f9b99cc.zip |
cross/cross-mips64el-unknown-linux-gnu-{glibc,binutils,gcc}
Diffstat (limited to 'cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD')
-rw-r--r-- | cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD b/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD new file mode 100644 index 000000000..18bd86070 --- /dev/null +++ b/cross/cross-mips64el-unknown-linux-gnu-binutils/PKGBUILD @@ -0,0 +1,56 @@ +# Contributor: Vojtech Horky <vojta . horky at-symbol seznam . cz> + +_pkgname=binutils +_target="mips64el-unknown-linux-gnu" +_sysroot="/usr/lib/cross-${_target}" +export PATH=${_sysroot}/bin:/usr/bin/cross/${_target}:$PATH + +pkgname=cross-${_target}-binutils +pkgver=2.22 +pkgrel=1 +pkgdesc="A set of programs to assemble and manipulate binary and object files for the MIPS architecture" +url="http://www.gnu.org/software/binutils/" +arch=('i686' 'x86_64') +license=('GPL') +depends=('zlib') +source=("ftp://ftp.gnu.org/gnu/binutils/${_pkgname}-${pkgver}.tar.bz2") +md5sums=('ee0f10756c84979622b992a4a61ea3f5') + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + export PATH=${_sysroot}/bin:$PATH + + ./configure \ + "--prefix=${_sysroot}" \ + "--bindir=/usr/bin" "--program-prefix=${_target}-" \ + "--with-sysroot=${_sysroot}" \ + "--target=${_target}" "--build=$CHOST" "--host=$CHOST" \ + "--disable-nls" \ + --with-gcc --with-gnu-as --with-gnu-ld \ + --without-included-gettext + + make all +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + msg "Removing duplicit files..." + # remove these files as they are already in the system + # (with native binutils) + rm -Rf ${pkgdir}${_sysroot}/share/{man,info} + # remove conflicting binaries + find ${pkgdir}/usr/bin/ -type f -not -name "${_target}-*" -delete + + msg "Creating out-of-path executables..." + # symlink executables to single directory with no-arch-prefix name + mkdir -p ${pkgdir}/usr/bin/cross/${_target}/; + cd ${pkgdir}/usr/bin/cross/${_target}/; + for bin in ${pkgdir}/usr/bin/${_target}-*; do + bbin=`basename "$bin"`; + ln -s "/usr/bin/${bbin}" `echo "$bbin" | sed "s#^${_target}-##"`; + done +} |