New package: arm-none-eabi-binutils

Closes: #9923 [via git-merge-pr]
This commit is contained in:
Thomas Bernard 2017-12-11 20:55:36 +01:00 committed by Jürgen Buchmüller
parent bc17fcc640
commit 5b59aae2c9
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
# Template file for 'arm-none-eabi-binutils'
_triplet=arm-none-eabi
pkgname=${_triplet}-binutils
version=2.29.1
revision=1
short_desc="GNU binary utilties for arm"
maintainer="Thomas Bernard <thomas@famillebernardgouriou.fr>"
homepage="http://www.voidlinux.eu"
license="GPL-3"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.bz2"
checksum="1509dff41369fb70aed23682351b663b56db894034773e6dbf7d5d6071fc55cc"
wrksrc="binutils-$version"
hostmakedepends="flex bison"
makedepends="zlib-devel"
do_configure() {
./configure \
--prefix=/usr \
--host=$XBPS_CROSS_TRIPLET \
--with-sysroot=/usr/${_triplet} \
--target=${_triplet} \
--disable-werror \
--enable-ld=default \
--enable-deterministic-archives \
--enable-gold \
--enable-plugins \
--enable-internetwork \
--with-gnu-as \
--with-gnu-ld \
--disable-nls
make configure-host
}
do_build() {
make ${makejobs} tooldir=/usr
}
do_install() {
make DESTDIR=${DESTDIR} install
}
post_install() {
rm -rf "$DESTDIR"/usr/share/info
rm -rf "$DESTDIR"/usr/share/locale
}