updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / cross-arm-none-eabi-newlib / PKGBUILD
blob761ef8524371d461d6bbfdb7d56fc90ce033be32
1 # Maintainer: Matias De la Puente <mfpuente.ar@gmail.com>
2 # based on 'cross-arm-elf-newlib' by Andreas Messer <andi@surveycorner.de>
4 pkgname=cross-arm-none-eabi-newlib
5 pkgver=1.19.0
6 pkgrel=2
7 pkgdesc="Newlib is a C library intended for use on embedded systems."
8 arch=('i686' 'x86_64')
9 groups=('devel')
10 url="http://sourceware.org/newlib/"
11 license=('GPL')
12 depends=('cross-arm-none-eabi-binutils' 'cross-arm-none-eabi-gcc-base')
13 options=(!libtool !emptydirs !strip)
14 source=(ftp://sources.redhat.com/pub/newlib/newlib-${pkgver}.tar.gz)
15 sha256sums=('4f43807236b2274c220881ca69f7dc6aecc52f14bb32a6f03404d30780c25007')
17 build() {
18  cd ${srcdir}
20  rm -rf build
21  mkdir  build
22  cd     build
24  export CFLAGS="-O2"
26  ../newlib-${pkgver}/configure \
27    --target=arm-none-eabi \
28    --prefix=/usr \
29    --enable-interwork \
30    --enable-multilib \
31    --with-gnu-as \
32    --with-gnu-ld \
33    --with-float=soft \
34    --disable-nls || return 1
36  make || return 1
37  make -j1 DESTDIR=${pkgdir} install || return 1
39  rm -rf ${pkgdir}/usr/share/info
40  return 0