summaryrefslogtreecommitdiff
path: root/community/avr-binutils/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-11 01:21:34 -0700
committerroot <root@rshg054.dnsready.net>2013-08-11 01:21:34 -0700
commit18a41d682d6e91e0d28fce23eb75292f477bd620 (patch)
treebce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/avr-binutils/PKGBUILD
parent0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff)
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/avr-binutils/PKGBUILD')
-rw-r--r--community/avr-binutils/PKGBUILD89
1 files changed, 0 insertions, 89 deletions
diff --git a/community/avr-binutils/PKGBUILD b/community/avr-binutils/PKGBUILD
deleted file mode 100644
index 2898a3e65..000000000
--- a/community/avr-binutils/PKGBUILD
+++ /dev/null
@@ -1,89 +0,0 @@
-# $Id: PKGBUILD 88220 2013-04-14 18:16:45Z 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>
-
-# Build order: avr-binutils -> avr-gcc -> avr-libc
-
-pkgname=avr-binutils
-pkgver=2.23.2
-pkgrel=1
-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.17' 'zlib' 'binutils')
-provides=("binutils-avr=$pkgver")
-replaces=('binutils-avr')
-options=('!libtool' '!distcc' '!ccache')
-install=avr-binutils.install
-source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
- binutils-2.23.2-texinfo-5.0.patch
- avr-size.patch)
-
-_builddir=binutils-build
-
-build() {
- cd ${srcdir}/binutils-${pkgver}
-
- # See https://bugs.archlinux.org/task/32504
- patch -Np0 < ${srcdir}/avr-size.patch
-
- # http://sourceware.org/git/?p=binutils.git;a=patch;h=e02bf935
- # http://sourceware.org/git/?p=binutils.git;a=patch;h=935f8542
- patch -p1 -i ${srcdir}/binutils-2.23.2-texinfo-5.0.patch
-
- # https://bugs.archlinux.org/task/34629
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
-
- config_guess=$(./config.guess)
-
- cd ${srcdir}
- rm -rf ${_builddir}
- mkdir ${_builddir} && cd ${_builddir}
-
- ${srcdir}/binutils-${pkgver}/configure \
- --prefix=/usr \
- --with-lib-path=/usr/lib:/usr/local/lib \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-ld=default \
- --enable-gold \
- --enable-plugins \
- --enable-threads \
- --with-pic \
- --enable-shared \
- --disable-werror \
- --disable-multilib \
- --build=${config_guess} \
- --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=/usr
-}
-
-package() {
- cd ${srcdir}/${_builddir}
-
- make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
-
- rm ${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
-
- rm -rf ${pkgdir}/usr/share/locale
-}
-
-md5sums=('4f8fa651e35ef262edc01d60fb45702e'
- 'SKIP'
- '34e439ce23213a91e2af872dfbb5094c'
- '573769ec1107d1bfed78680edd7ae63f')