diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 7 deletions
@@ -1,13 +1,14 @@ pkgbase = sh-elf-binutils-casio pkgdesc = GNU binary utilities for the Casio calculators SuperH processors. pkgver = 2.36 - pkgrel = 1 + pkgrel = 2 url = https://www.gnu.org/software/binutils/ arch = i686 arch = x86_64 license = GPL - depends = zlib + depends = binutils depends = flex + depends = zlib options = !libtool options = !buildflags source = https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.bz2 @@ -3,13 +3,13 @@ _target=sh-elf pkgname=${_target}-binutils-casio pkgver=2.36 -pkgrel=1 +pkgrel=2 pkgdesc="GNU binary utilities for the Casio calculators SuperH processors." arch=(i686 x86_64) options=('!libtool' '!buildflags') url='https://www.gnu.org/software/binutils/' license=(GPL) -depends=('zlib' 'flex') +depends=('binutils' 'flex' 'zlib') source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2) sha256sums=('209ef690dc7ac28ca592daf7e87d6289222a61fb96104dd5d5e016133ed38e8d') @@ -34,8 +34,7 @@ build() { --program-prefix=${_target}- \ --disable-nls \ --enable-libssp \ - --enable-lto \ - --disable-werror + --enable-lto make configure-host make @@ -44,8 +43,13 @@ build() { package() { cd "${srcdir}/binutils-${pkgver}/binutils-build" echo "Install on ${pkgdir}" - make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" install-strip # Remove info documents that conflicts with host version rm -rf "${pkgdir}/usr/share/info" + + # Remove libraries that conflict with host version + rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so + rmdir "$pkgdir"/usr/lib/bfd-plugins + rmdir "$pkgdir"/usr/lib } |