[arch-commits] Commit in avr-gcc/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jakob Gruber
schuay at nymeria.archlinux.org
Thu Oct 17 12:52:09 UTC 2013
Date: Thursday, October 17, 2013 @ 14:52:09
Author: schuay
Revision: 98734
archrelease: copy trunk to community-x86_64
Added:
avr-gcc/repos/community-x86_64/PKGBUILD
(from rev 98733, avr-gcc/trunk/PKGBUILD)
Deleted:
avr-gcc/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 202 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 101 insertions(+), 101 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-10-17 12:52:02 UTC (rev 98733)
+++ PKGBUILD 2013-10-17 12:52:09 UTC (rev 98734)
@@ -1,101 +0,0 @@
-# $Id$
-# Maintainer: schuay <jakob.gruber at gmail.com>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
-# Contributor: Corrado Primier <bardo at aur.archlinux.org>
-# Contributor: danst0 <danst0 at west.de>
-
-# Build order: avr-binutils -> avr-gcc -> avr-libc
-
-pkgname=avr-gcc
-_pkgname=gcc
-pkgver=4.8.0
-pkgrel=2
-pkgdesc="The GNU AVR Compiler Collection"
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL' 'FDL' 'custom')
-url="http://gcc.gnu.org/"
-depends=('avr-binutils>=2.23' 'cloog' 'ppl' 'gcc-libs>=4.8.0' 'libmpc')
-optdepends=('avr-libc: Standard C library for Atmel AVR development')
-provides=("gcc-avr=$pkgver")
-replaces=('gcc-avr')
-options=('!libtool' '!emptydirs' '!strip')
-source=(http://ftp.gnu.org/gnu/gcc/${_pkgname}-${pkgver}/gcc-${pkgver}.tar.bz2)
-
-_basedir=${_pkgname}-${pkgver}
-
-build() {
- # default CFLAGS lead to issues later on when configure
- # calls avr-gcc with -march set.
- export CFLAGS="-O2 -pipe"
- export CXXFLAGS="-O2 -pipe"
-
- cd ${srcdir}/${_basedir}
-
- # Do not install libiberty
- sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
-
- # https://bugs.archlinux.org/task/34629
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
- sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" gcc/configure
-
- echo ${pkgver} > gcc/BASE-VER
-
- cd ${srcdir}
- mkdir gcc-build && cd gcc-build
-
- # --disable-linker-build-id: https://bugs.archlinux.org/task/34902
-
- ${srcdir}/${_basedir}/configure \
- --disable-cloog-version-check \
- --disable-install-libiberty \
- --disable-libssp \
- --disable-libstdcxx-pch \
- --disable-libunwind-exceptions \
- --disable-linker-build-id \
- --disable-nls \
- --disable-werror \
- --enable-__cxa_atexit \
- --enable-checking=release \
- --enable-clocale=gnu \
- --enable-cloog-backend=isl \
- --enable-gnu-unique-object \
- --enable-gold \
- --enable-languages=c,c++ \
- --enable-ld=default \
- --enable-lto \
- --enable-plugin \
- --enable-shared \
- --infodir=/usr/share/info \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --mandir=/usr/share/man \
- --prefix=/usr \
- --target=avr \
- --with-as=/usr/bin/avr-as \
- --with-gnu-as \
- --with-gnu-ld \
- --with-ld=/usr/bin/avr-ld \
- --with-plugin-ld=ld.gold \
- --with-system-zlib
-
- make
-}
-
-package() {
- cd ${srcdir}/gcc-build
-
- make -j1 DESTDIR=${pkgdir} install
-
- # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
- find ${pkgdir}/usr/lib -type f -name "*.a" \
- -exec /usr/bin/avr-strip --strip-debug '{}' \;
-
- # Install Runtime Library Exception
- install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
- ${pkgdir}/usr/share/licenses/${pkgname}/RUNTIME.LIBRARY.EXCEPTION
-
- rm -rf ${pkgdir}/usr/share/man/man7
- rm -rf ${pkgdir}/usr/share/info
-}
-
-md5sums=('e6040024eb9e761c3bea348d1fa5abb0')
Copied: avr-gcc/repos/community-x86_64/PKGBUILD (from rev 98733, avr-gcc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-10-17 12:52:09 UTC (rev 98734)
@@ -0,0 +1,101 @@
+# $Id$
+# Maintainer: schuay <jakob.gruber at gmail.com>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Corrado Primier <bardo at aur.archlinux.org>
+# Contributor: danst0 <danst0 at west.de>
+
+# Build order: avr-binutils -> avr-gcc -> avr-libc
+
+pkgname=avr-gcc
+_pkgname=gcc
+pkgver=4.8.2
+pkgrel=1
+pkgdesc="The GNU AVR Compiler Collection"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL' 'custom')
+url="http://gcc.gnu.org/"
+depends=('avr-binutils>=2.23' 'cloog' 'ppl' 'gcc-libs>=4.8.0' 'libmpc')
+optdepends=('avr-libc: Standard C library for Atmel AVR development')
+provides=("gcc-avr=$pkgver")
+replaces=('gcc-avr')
+options=('!libtool' '!emptydirs' '!strip')
+source=(http://ftp.gnu.org/gnu/gcc/${_pkgname}-${pkgver}/gcc-${pkgver}.tar.bz2)
+
+_basedir=${_pkgname}-${pkgver}
+
+build() {
+ # default CFLAGS lead to issues later on when configure
+ # calls avr-gcc with -march set.
+ export CFLAGS="-O2 -pipe"
+ export CXXFLAGS="-O2 -pipe"
+
+ cd ${srcdir}/${_basedir}
+
+ # Do not install libiberty
+ sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+ # https://bugs.archlinux.org/task/34629
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" gcc/configure
+
+ echo ${pkgver} > gcc/BASE-VER
+
+ cd ${srcdir}
+ mkdir gcc-build && cd gcc-build
+
+ # --disable-linker-build-id: https://bugs.archlinux.org/task/34902
+
+ ${srcdir}/${_basedir}/configure \
+ --disable-cloog-version-check \
+ --disable-install-libiberty \
+ --disable-libssp \
+ --disable-libstdcxx-pch \
+ --disable-libunwind-exceptions \
+ --disable-linker-build-id \
+ --disable-nls \
+ --disable-werror \
+ --enable-__cxa_atexit \
+ --enable-checking=release \
+ --enable-clocale=gnu \
+ --enable-cloog-backend=isl \
+ --enable-gnu-unique-object \
+ --enable-gold \
+ --enable-languages=c,c++ \
+ --enable-ld=default \
+ --enable-lto \
+ --enable-plugin \
+ --enable-shared \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --prefix=/usr \
+ --target=avr \
+ --with-as=/usr/bin/avr-as \
+ --with-gnu-as \
+ --with-gnu-ld \
+ --with-ld=/usr/bin/avr-ld \
+ --with-plugin-ld=ld.gold \
+ --with-system-zlib
+
+ make
+}
+
+package() {
+ cd ${srcdir}/gcc-build
+
+ make -j1 DESTDIR=${pkgdir} install
+
+ # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
+ find ${pkgdir}/usr/lib -type f -name "*.a" \
+ -exec /usr/bin/avr-strip --strip-debug '{}' \;
+
+ # Install Runtime Library Exception
+ install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
+ ${pkgdir}/usr/share/licenses/${pkgname}/RUNTIME.LIBRARY.EXCEPTION
+
+ rm -rf ${pkgdir}/usr/share/man/man7
+ rm -rf ${pkgdir}/usr/share/info
+}
+
+md5sums=('a3d7d63b9cb6b6ea049469a0c4a43c9d')
More information about the arch-commits
mailing list