[arch-commits] Commit in riscv64-linux-gnu-binutils/repos/community-x86_64 (2 files)
Alexander Rødseth
arodseth at archlinux.org
Wed Oct 24 13:14:09 UTC 2018
Date: Wednesday, October 24, 2018 @ 13:14:09
Author: arodseth
Revision: 398820
archrelease: copy trunk to community-x86_64
Added:
riscv64-linux-gnu-binutils/repos/community-x86_64/PKGBUILD
(from rev 398819, riscv64-linux-gnu-binutils/trunk/PKGBUILD)
Deleted:
riscv64-linux-gnu-binutils/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 118 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 57 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-24 13:14:00 UTC (rev 398819)
+++ PKGBUILD 2018-10-24 13:14:09 UTC (rev 398820)
@@ -1,61 +0,0 @@
-# $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.31.1
-pkgrel=1
-pkgdesc='Assemble and manipulate binary and object files for 32bit and 64bit RISC-V'
-arch=('x86_64')
-url='http://www.gnu.org/software/binutils/'
-license=('GPL')
-depends=('zlib')
-source=("https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz")
-sha512sums=('0fca326feb1d5f5fe505a827b20237fe3ec9c13eaf7ec7e35847fd71184f605ba1cefe1314b1b8f8a29c0aa9d88162849ee1c1a3e70c2f7407d88339b17edb30')
-
-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:
Copied: riscv64-linux-gnu-binutils/repos/community-x86_64/PKGBUILD (from rev 398819, riscv64-linux-gnu-binutils/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-10-24 13:14:09 UTC (rev 398820)
@@ -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.31.1
+pkgrel=2
+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=('0fca326feb1d5f5fe505a827b20237fe3ec9c13eaf7ec7e35847fd71184f605ba1cefe1314b1b8f8a29c0aa9d88162849ee1c1a3e70c2f7407d88339b17edb30')
+
+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