diff --git a/srcpkgs/arm-none-eabi-binutils/template b/srcpkgs/arm-none-eabi-binutils/template new file mode 100644 index 00000000000..c88010e487d --- /dev/null +++ b/srcpkgs/arm-none-eabi-binutils/template @@ -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 " +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 +}