Date: Wednesday, October 24, 2018 @ 13:14:00 Author: arodseth Revision: 398819
upgpkg: riscv64-linux-gnu-binutils 2.31.1-2 Modified: riscv64-linux-gnu-binutils/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-24 12:55:28 UTC (rev 398818) +++ PKGBUILD 2018-10-24 13:14:00 UTC (rev 398819) @@ -1,25 +1,26 @@ # Maintainer: Felix Yan <[email protected]> +# Maintainer: Alexander F. Rødseth <[email protected]> # Contributor: Emil Renner Berthing <[email protected]> _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' +pkgrel=2 +pkgdesc='Assemble and manipulate binary and object files for 32-bit and 64-bit RISC-V' arch=('x86_64') -url='http://www.gnu.org/software/binutils/' +url='https://gnu.org/software/binutils/' license=('GPL') -depends=('zlib') +groups=('risc-v') +makedepends=('setconf') 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 + setconf binutils-$pkgver/libiberty/configure ac_cpp="'\$CPP \$CPPFLAGS -O2'" } build() { - cd binutils-$pkgver + cd "binutils-$pkgver" unset CPPFLAGS @@ -36,25 +37,21 @@ --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 + # * 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() { - cd binutils-$pkgver + make -C "binutils-$pkgver" DESTDIR="$pkgdir" install - make DESTDIR="$pkgdir" install - # Remove info documents that conflict with host version - rm -r "$pkgdir"/usr/share/info + rm -r "$pkgdir/usr/share/info" } -# vim: set ts=2 sw=2 et: +# getver: gnu.org/software/binutils +# vim: ts=2 sw=2 et:
