blob: 6f046482c65b991abc0e56787ee65cc644eade9b (
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
|
# Maintainer: graysky <therealgraysky AT proton DOT me>
# Contributor: Christer Solskogen <christer.solskogen@gmail.com>
# Build order: armv7l-binutils -> armv7l-linux-api-headers -> armv7l-gcc-bootstrap -> armv7l-glibc -> armv7l-gcc -> armv7l-glibc (again)
_arch=armv7l
_target=$_arch-unknown-linux-gnueabihf
pkgname=$_arch-binutils
pkgver=2.43
pkgrel=1
_commit=57f3676f3e5266829a91880d61143ab9ecd617bd
pkgdesc='A set of programs to assemble and manipulate binary and object files for armv7l'
arch=('x86_64')
url='https://www.gnu.org/software/binutils/'
license=(GPL)
depends=('glibc' 'zlib' 'elfutils')
makedepends=('git')
source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit})
sha256sums=('ce1bfbcefa6413e42d80fcd92966e78a7b53c0039d44a5220b6727957017643c')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93' # Tristan Gingold <gingold@adacore.com>
'3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton (Chief Binutils Maintainer) <nickc@redhat.com>
prepare() {
mkdir -p binutils-build
}
build() {
cd binutils-build
"$srcdir"/binutils-gdb/configure \
--target=$_target \
--with-sysroot=/usr/$_target/sys-root \
--prefix=/usr \
--enable-default-execstack=no \
--enable-deterministic-archives \
--enable-gold \
--enable-install-libiberty \
--enable-jansson \
--enable-ld=default \
--enable-new-dtags \
--enable-plugins \
--enable-relro \
--enable-shared \
--enable-threads \
--disable-gdb \
--disable-gdbserver \
--disable-libdecnumber \
--disable-readline \
--disable-sim \
--disable-werror \
--with-debuginfod \
--with-pic \
--with-system-zlib \
make
}
package() {
cd binutils-build
make DESTDIR="$pkgdir" install
# Remove files that conflict with host version
rm -rf "$pkgdir"/usr/{etc,include,lib,share}
}
|