summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5952a8c5bf3d81e661972ca9622a0d4c9ef12304 (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
# Maintainer: Ernestas Kulik <ernestas DOT kulik AT gmail DOT com>

_target=aarch64-none-elf

pkgname=${_target}-binutils
pkgver=2.29
pkgrel=1
pkgdesc='A set of programs to assemble and manipulate binary and object files.'
url='https://www.gnu.org/software/binutils/'
license=('GPL3')
source=("https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2"
        "https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2.sig")
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93') # Tristan Gingold <gingold@adacore.com>
sha1sums=('4376bce1e58d591c6a5dd44fc8713f154208d735'
          'SKIP')
arch=('x86_64')
depends=('glibc' 'zlib')
options=('!buildflags')

build() {
    cd binutils-$pkgver

    ./configure \
        --disable-nls \
        --disable-werror \
        --enable-deterministic-archives \
        --enable-gold \
        --enable-ld=default \
        --enable-plugins \
        --prefix=/usr \
        --target=$_target \
        --with-gnu-as \
        --with-gnu-ld \
        --with-sysroot=/usr/$_target

    make
}

check() {
    cd binutils-$pkgver

    make check
}

package() {
    cd binutils-$pkgver

    make DESTDIR="$pkgdir" install

    rm "$pkgdir"/usr/share/man/man1/${_target}-{dlltool,nlmconv,windmc,windres}.1
    rm -r "$pkgdir"/usr/share/info
}