That PKGBUILD does not longer compile because packages in the GNU ftp folder have different extension.
This PKGBUILD is updated for binutils-avr 2.20.1-2 and for the corresponding version of the patches, and works fine:
# Contributor: Andras Biro <bbandi86@gmail.com>
# PKGBUILD based on the binutils-avr PKGBUILD by
# Corrado Primier <bardo@aur.archlinux.org> and danst0 <danst0@west.de>
# modified with debian patchset by dsh <pinkeen@gmail.com>
# updated by Leonardo Miliani <leonardo AT leonardomiliani DOT com>
pkgname=binutils-avr
pkgver=2.20.1
pkgrel=2
pkgdesc="A set of programs to assemble and manipulate binary and object files for the avr architecture (debian patchset)"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
depends=('glibc>=2.10.1' 'zlib')
provides=('binutils-avr')
options=('!libtool' '!distcc' '!ccache')
source=(http://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2
http://ftp.de.debian.org/debian/pool/main/b/binutils-avr/binutils-avr_2.20.1-2.tar.gz)
md5sums=('2b9dc8f2b7dbd5ec5992c6e29de0b764'
'59c3ffda57eb3352eadbf05efa85ede8')
build() {
cd ${srcdir}/binutils-${pkgver}
mv ../binutils-avr-2.20.1/debian/patches-2.20 ..
for p in `ls ../patches-2.20/*`; do
echo Applying patch $p
patch -Np0 < $p || return 1
done
install -d build
cd build
CC="gcc -L$(pwd)/bfd/.libs/"
if [ "${CARCH}" = "x86_64" ]; then
../configure --build=$(../config.guess) \
--disable-multilib \
--disable-nls \
--enable-64-bit-bfd \
--enable-install-libbfd \
--includedir=/usr/$(../config.guess)/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--prefix=/usr \
--target=avr \
--disable-werror
else
../configure --build=$(../config.guess) \
--disable-nls \
--enable-install-libbfd \
--includedir=/usr/$(../config.guess)/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--prefix=/usr \
--target=avr \
--disable-werror
fi
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host || return 1
make tooldir=/usr || return 1
}
package() {
cd ${srcdir}/binutils-${pkgver}
cd build
make DESTDIR=${pkgdir} tooldir=/usr install || return 1
rm -f ${pkgdir}/usr/lib/libiberty.a
for bin in addr2line ar as c++filt gprof ld nm objcopy objdump ranlib readelf size strings strip ; do
rm -f ${pkgdir}/usr/bin/${bin} || return 1
done
for info in as bfd binutils configure ld standards; do
mv ${pkgdir}/usr/share/info/${info}.info ${pkgdir}/usr/share/info/avr-${info}.info || return 1
done
}
# vim:set ts=2 sw=2 et: