summaryrefslogtreecommitdiff
path: root/community-testing
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-12-06 18:47:18 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-12-06 18:47:18 +0100
commit0ecad2876ee230c3929d93e97a5ff9aabb34639e (patch)
tree9858158941e1c5616209051070e0a4b999900bfb /community-testing
parenta6e4eeba56ffd555f912ac1063ed08245e3f43c1 (diff)
parent55d1e19e71b453a0f47c599f281a2ad2644247d2 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/jack2/PKGBUILD community/tremulous/PKGBUILD extra/audiofile/PKGBUILD extra/graphviz/PKGBUILD extra/jhead/PKGBUILD extra/redland/PKGBUILD multilib/nspluginwrapper/PKGBUILD
Diffstat (limited to 'community-testing')
-rw-r--r--community-testing/binutils-avr/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/community-testing/binutils-avr/PKGBUILD b/community-testing/binutils-avr/PKGBUILD
new file mode 100644
index 000000000..1dfbbe0d7
--- /dev/null
+++ b/community-testing/binutils-avr/PKGBUILD
@@ -0,0 +1,72 @@
+# $Id: PKGBUILD 60056 2011-12-04 14:59:45Z jelle $
+# Maintainer: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: danst0 <danst0@west.de>
+
+pkgname=binutils-avr
+pkgver=2.22
+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.12-5' 'zlib')
+options=('!libtool' '!distcc' '!ccache')
+source=(http://ftp.gnu.org/gnu/${pkgname/-avr}/${pkgname/-avr}-${pkgver}.tar.bz2{,.sig})
+md5sums=('ee0f10756c84979622b992a4a61ea3f5'
+ '6aea2485019497583e5c3f5fc4a39cd5')
+
+build() {
+ cd ${srcdir}/${pkgname/-avr}-${pkgver}
+
+ mkdir build
+ cd build
+
+ 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
+
+ # 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}/${pkgname/-avr}-${pkgver}
+
+ cd build
+ make DESTDIR=${pkgdir} tooldir=/usr install
+
+ 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 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
+}
+