[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sun May 13 08:56:09 UTC 2018


    Date: Sunday, May 13, 2018 @ 08:56:08
  Author: felixonmars
Revision: 321573

addpkg: riscv64-linux-gnu-binutils 2.29.1-1

Added:
  riscv64-linux-gnu-binutils/
  riscv64-linux-gnu-binutils/repos/
  riscv64-linux-gnu-binutils/trunk/
  riscv64-linux-gnu-binutils/trunk/PKGBUILD

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Added: riscv64-linux-gnu-binutils/trunk/PKGBUILD
===================================================================
--- riscv64-linux-gnu-binutils/trunk/PKGBUILD	                        (rev 0)
+++ riscv64-linux-gnu-binutils/trunk/PKGBUILD	2018-05-13 08:56:08 UTC (rev 321573)
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Emil Renner Berthing <aur at esmil.dk>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-binutils
+pkgver=2.29.1
+pkgrel=1
+pkgdesc='Assemble and manipulate binary and object files for 32bit and 64bit RISC-V'
+arch=('i686' 'x86_64')
+url='http://www.gnu.org/software/binutils/'
+license=('GPL')
+depends=('zlib')
+source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz")
+sha1sums=('172244a349d07ec205c39c0321cbc354c125e78e')
+
+prepare() {
+  cd binutils-$pkgver
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+  cd binutils-$pkgver
+
+  unset CPPFLAGS
+
+  ./configure \
+    --target=$_target \
+    --prefix=/usr \
+    --with-sysroot=/usr/$_target \
+    --with-gnu-as \
+    --with-gnu-ld \
+    --with-system-zlib \
+    --disable-nls \
+    --enable-multilib \
+    --enable-ld=default \
+    --enable-gold \
+    --enable-plugins \
+    --enable-deterministic-archives
+
+  make
+}
+
+check() {
+  cd binutils-$pkgver
+
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS="" -k check
+}
+
+package() {
+  cd binutils-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  # Remove info documents that conflict with host version
+  rm -r "$pkgdir"/usr/share/info
+}
+
+# vim: set ts=2 sw=2 et:


Property changes on: riscv64-linux-gnu-binutils/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list