summaryrefslogtreecommitdiff
path: root/community-testing/avr-binutils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/avr-binutils/PKGBUILD')
-rw-r--r--community-testing/avr-binutils/PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/community-testing/avr-binutils/PKGBUILD b/community-testing/avr-binutils/PKGBUILD
new file mode 100644
index 000000000..70b93f499
--- /dev/null
+++ b/community-testing/avr-binutils/PKGBUILD
@@ -0,0 +1,67 @@
+# $Id: PKGBUILD 68437 2012-03-24 15:12:33Z schuay $
+# Maintainer: schuay <jakob.gruber@gmail.com>
+# Contributor: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: danst0 <danst0@west.de>
+
+pkgname=avr-binutils
+pkgver=2.22
+pkgrel=3
+_pkgname=binutils
+_date=20120323
+pkgdesc="A set of programs to assemble and manipulate binary and object files for the avr architecture"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/"
+license=('GPL')
+depends=('glibc>=2.15' 'zlib')
+provides=("binutils-avr=$pkgver")
+replaces=('binutils-avr')
+options=('!libtool' '!distcc' '!ccache')
+source=(ftp://ftp.archlinux.org/other/${_pkgname}/${_pkgname}-${pkgver}_${_date}.tar.bz2)
+
+_builddir=binutils-build
+
+build() {
+ cd ${srcdir}
+
+ config_guess=$(${_pkgname}/config.guess)
+ rm -rf ${_builddir}
+ mkdir ${_builddir} && cd ${_builddir}
+
+ [[ $CARCH == "x86_64" ]] && CONFIGFLAG="--enable-64-bit-bfd --disable-multilib"
+
+ ${srcdir}/${_pkgname}/configure \
+ --prefix=/usr \
+ --build=${config_guess} \
+ --disable-nls \
+ --enable-install-libbfd \
+ --includedir=/usr/${config_guess}/include \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --target=avr \
+ $CONFIGFLAG
+
+ # This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
+ make configure-host
+
+ make tooldir=${pkgdir}/usr
+}
+
+package() {
+ cd ${srcdir}/${_builddir}
+
+ make DESTDIR=${pkgdir} tooldir=/usr install
+
+ rm -f ${pkgdir}/usr/lib/libiberty.a
+
+ for bin in ar as nm objcopy objdump ranlib strip ; do
+ rm -f ${pkgdir}/usr/bin/${bin}
+ done
+
+ for info in as bfd binutils configure gprof ld standards; do
+ mv ${pkgdir}/usr/share/info/${info}.info ${pkgdir}/usr/share/info/avr-${info}.info
+ done
+}
+
+md5sums=('de2ac4298732827f8af706fc24020330')