blob: 2c9d3decaaed219c269237790058653307cba722 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# $Id: PKGBUILD 106897 2014-03-09 19:30:48Z schuay $
# Maintainer: schuay <jakob.gruber@gmail.com>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: danst0 <danst0@west.de>
# Build order: avr-binutils -> avr-gcc -> avr-libc
pkgname=avr-binutils
pkgver=2.24
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files for the AVR architecture"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
depends=('glibc>=2.17' 'zlib' 'binutils')
options=('staticlibs' '!distcc' '!ccache')
install=avr-binutils.install
source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
avr-size.patch)
_builddir=binutils-build
build() {
cd ${srcdir}/binutils-${pkgver}
# See https://bugs.archlinux.org/task/32504
patch -Np0 < ${srcdir}/avr-size.patch
# https://bugs.archlinux.org/task/34629
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
config_guess=$(./config.guess)
cd ${srcdir}
rm -rf ${_builddir}
mkdir ${_builddir} && cd ${_builddir}
${srcdir}/binutils-${pkgver}/configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://bugs.archlinux.org/ \
--enable-ld=default \
--enable-gold \
--enable-plugins \
--enable-threads \
--with-pic \
--enable-shared \
--disable-werror \
--disable-multilib \
--build=${config_guess} \
--target=avr \
$CONFIGFLAG
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host
make tooldir=/usr
}
package() {
cd ${srcdir}/${_builddir}
make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
for bin in ar as nm objcopy objdump ranlib strip ; do
rm -f ${pkgdir}/usr/bin/${bin}
done
for info in as bfd binutils configure gprof ld standards; do
mv ${pkgdir}/usr/share/info/${info}.info ${pkgdir}/usr/share/info/avr-${info}.info
done
rm -rf ${pkgdir}/usr/share/locale
}
md5sums=('e0f71a7b2ddab0f8612336ac81d9636b'
'SKIP'
'573769ec1107d1bfed78680edd7ae63f')
|