diff options
Diffstat (limited to 'community/avr-binutils')
-rw-r--r-- | community/avr-binutils/PKGBUILD | 87 |
1 files changed, 40 insertions, 47 deletions
diff --git a/community/avr-binutils/PKGBUILD b/community/avr-binutils/PKGBUILD index ebd67da97..18ef8f9e6 100644 --- a/community/avr-binutils/PKGBUILD +++ b/community/avr-binutils/PKGBUILD @@ -1,74 +1,67 @@ -# $Id: PKGBUILD 63813 2012-02-05 15:45:13Z bpiotrowski $ -# Maintainer: Brad Fanella <bradfanella@archlinux.us> +# $Id: PKGBUILD 69306 2012-04-13 08:25: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=2 +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.12-5' 'zlib') +depends=('glibc>=2.15' 'zlib') provides=("binutils-avr=$pkgver") replaces=('binutils-avr') options=('!libtool' '!distcc' '!ccache') -source=(http://ftp.gnu.org/gnu/${pkgname/avr-}/${pkgname/avr-}-${pkgver}.tar.bz2{,.sig}) -md5sums=('ee0f10756c84979622b992a4a61ea3f5' - '6aea2485019497583e5c3f5fc4a39cd5') +source=(ftp://ftp.archlinux.org/other/${_pkgname}/${_pkgname}-${pkgver}_${_date}.tar.bz2) + +_builddir=binutils-build build() { - cd "${srcdir}"/${pkgname/avr-}-${pkgver} + cd ${srcdir} + + config_guess=$(${_pkgname}/config.guess) + rm -rf ${_builddir} + mkdir ${_builddir} && cd ${_builddir} - mkdir build - cd build + [[ $CARCH == "x86_64" ]] && CONFIGFLAG="--enable-64-bit-bfd --disable-multilib" - CC="gcc -L$(pwd)/bfd/.libs/" - if [ "${CARCH}" = "x86_64" ]; then - ../configure --build=$(../config.guess) \ - --disable-multilib \ - --disable-nls \ - --enable-64-bit-bfd \ - --enable-install-libbfd \ - --includedir=/usr/$(../config.guess)/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --mandir=/usr/share/man \ - --prefix=/usr \ - --target=avr - else - ../configure --build=$(../config.guess) \ - --disable-nls \ - --enable-install-libbfd \ - --includedir=/usr/$(../config.guess)/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --mandir=/usr/share/man \ - --prefix=/usr \ - --target=avr - fi + ${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 + # This checks the host environment and makes sure all the necessary tools are available to compile Binutils. + make configure-host - make tooldir=/usr + make tooldir=${pkgdir}/usr } package() { - cd "${srcdir}"/${pkgname/avr-}-${pkgver} + cd ${srcdir}/${_builddir} - cd build - make DESTDIR="${pkgdir}" tooldir=/usr install + make DESTDIR=${pkgdir} tooldir=/usr install - rm -f ${pkgdir}/usr/lib/libiberty.a + rm -f ${pkgdir}/usr/lib/libiberty.a - for bin in addr2line ar as c++filt gprof ld nm objcopy objdump ranlib readelf size strings strip ; do - rm -f ${pkgdir}/usr/bin/${bin} || return 1 - done + 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 + 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') |