summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3df9f3d80941c9c04ab94655f89f1507b5f750b3 (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
# Maintainer: George Thomas <georgefsthomas@gmail.com>

target=aarch64-none-linux-gnu
pkgver=9.2
pkgrel=2019.12
pkgverfull=${pkgver}-${pkgrel}
pkgname=${target}-gcc-${pkgver}-bin
pkgdesc="GNU Cross Compilation Toolchain for AArch64 (GCC 9.2)"
arch=('x86_64')
url="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads"
license=('GPL' 'LGPL')
depends=(binutils)
conflicts=('aarch64-linux-gnu-gcc')
options=(!emptydirs !strip staticlibs)
source=("https://developer.arm.com/-/media/Files/downloads/gnu-a/${pkgverfull}/binrel/gcc-arm-${pkgverfull}-x86_64-${target}.tar.xz")
md5sums=(23ecc1dc528253c43e43365c6d923ec3)

package() {
  mkdir -p ${pkgdir}/usr
  cp -a ${srcdir}/gcc-arm-${pkgverfull}-x86_64-${target}/* ${pkgdir}/usr

  rm -f ${pkgdir}/usr/*-manifest.txt
  rm -rf ${pkgdir}/usr/lib64
  rm -rf ${pkgdir}/usr/include
  rm -rf ${pkgdir}/usr/share/{doc,gcc-*,gdb,info,locale}
  rm -rf ${pkgdir}/usr/share/man/{man5,man7}
  rm -rf ${pkgdir}/usr/lib/bfd-plugins/libdep.so
}