blob: c74cccc001a0c841e1e3604e93aa898eb5ac8c90 (
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
|
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=binutils-avr
pkgver=2.31.1
pkgrel=0
pkgdesc="Tools necessary to build programs for AVR targets"
url="https://www.gnu.org/software/binutils/"
makedepends="gettext libtool autoconf automake"
arch="all"
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
binutils-ld-fix-static-linking.patch"
builddir="$srcdir/binutils-$pkgver"
_workingdir="$srcdir/binutils-build"
build() {
mkdir "$_workingdir"
cd "$_workingdir"
"$builddir"/configure \
--build="$CBUILD" \
--target=avr \
--with-lib-path=/usr/lib \
--prefix=/usr \
--enable-ld=default \
--enable-gold=yes \
--enable-plugins \
--disable-multilib \
--disable-werror \
--disable-nls
make -j1 tooldir=/usr
}
check() {
cd "$_workingdir"
make check
}
package() {
cd "$_workingdir"
make tooldir=/usr install DESTDIR="$pkgdir"
rm -rf "$pkgdir"/usr/share/info
for bin in ar as nm objcopy objdump ranlib strip readelf; do
rm -f "$pkgdir"/usr/bin/"$bin"
done
}
sha512sums="b42954e6f49a0adcd2676bdd77dfb59bfc25cec8184b007521d1e2b1d5d0593b58639e3d9448d5a40fe024c3cea386a37743627d6bb16d502f52a4a32b9573bd binutils-2.31.1.tar.bz2
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch"
|