You are not logged in.

#1 2011-08-31 10:07:54

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 552

gcc43-avr, PKGBUILD check.

For various reason I need gcc-avr version 4.3.x. I found the 4.3.0 PKGBUILD file and modified it for 4.3.6. Could someone check it? Is it correct? Is there somethig that sohould be added, removed.

It works for my system.

# $Id: PKGBUILD,v 1.2 2008/03/24 00:32:07 bardo Exp $
# Maintainer: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: danst0 <danst0@west.de>

pkgname=gcc43-avr
pkgname_=gcc-avr
pkgver=4.3.6
pkgrel=1
pkgdesc="The GNU avr Compiler"
arch=('i686')
url="http://www.gnu.org/software/gcc/gcc.html"
license=('GPL')
depends=('binutils-avr' 'mpfr')
conflicts=('gcc-avr')
options=('!ccache' '!distcc' '!emptydirs' '!strip')
source=(http://ftp.gnu.org/gnu/gcc/${pkgname_/-avr}-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2)
md5sums=('43df9ad8b4bb314a46bac12f5aefaec2' 'ee7dc01b6e1a6a92a6e8d66adb8d2ab9')

build() {
  cd ${startdir}/src/${pkgname_/-avr}-${pkgver}
  mkdir build
  cd build
  ../configure --disable-libssp \
               --disable-nls \
               --enable-languages=c,c++ \
               --mandir=/usr/share/man \
               --prefix=/usr \
               --target=avr \
               --with-gnu-as \
               --with-gnu-ld \
               --with-as=/usr/bin/avr-as \
               --with-ld=/usr/bin/avr-ld
  
  make CFLAGS='-O2 -pipe' || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  rm -f ${startdir}/pkg/usr/lib/libiberty.a || return 1
  rm -rf ${startdir}/pkg/usr/share/man/man7 || return 1
}

Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

Board footer

Powered by FluxBB