[arch-commits] Commit in riscv64-linux-gnu-binutils/repos (2 files)
Anatol Pomozov
anatolik at archlinux.org
Sun Oct 13 04:07:53 UTC 2019
Date: Sunday, October 13, 2019 @ 04:07:52
Author: anatolik
Revision: 515286
archrelease: copy trunk to community-testing-x86_64
Added:
riscv64-linux-gnu-binutils/repos/community-testing-x86_64/
riscv64-linux-gnu-binutils/repos/community-testing-x86_64/PKGBUILD
(from rev 515285, riscv64-linux-gnu-binutils/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: riscv64-linux-gnu-binutils/repos/community-testing-x86_64/PKGBUILD (from rev 515285, riscv64-linux-gnu-binutils/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-10-13 04:07:52 UTC (rev 515286)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Emil Renner Berthing <aur at esmil.dk>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-binutils
+pkgver=2.33.1
+pkgrel=1
+pkgdesc='Assemble and manipulate binary and object files for 32-bit and 64-bit RISC-V'
+arch=('x86_64')
+url='https://gnu.org/software/binutils/'
+license=('GPL')
+groups=('risc-v')
+makedepends=('setconf')
+source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz")
+sha512sums=('b7a6767c6c7ca6b5cafa7080e6820b7bb3a53b7148348c438d99905defbdf0d30c9744a484ee01c9441a8153901808513366b15ba9533e20c9673c262ade36ac')
+
+prepare() {
+ setconf binutils-$pkgver/libiberty/configure ac_cpp="'\$CPP \$CPPFLAGS -O2'"
+}
+
+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() {
+ # * Unset LDFLAGS as testsuite makes assumptions about which ones are active.
+ # * Do not abort on errors - manually check log files.
+ make -C "binutils-$pkgver" LDFLAGS="" -k check
+}
+
+package() {
+ make -C "binutils-$pkgver" DESTDIR="$pkgdir" install
+
+ # Remove info documents that conflict with host version
+ rm -r "$pkgdir/usr/share/info"
+}
+
+# getver: gnu.org/software/binutils
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list