updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / cross-rx-elf-newlib / PKGBUILD
blob8c8b56f0e99d2d98cdf0fa2389899cb2b9dea7a5
1 # Maintainer: Peter Marheine <peter@taricorp.net>
2 # based on 'cross-arm-elf-newlib' by Andreas Messer <andi@surveycorner.de>
4 pkgname=cross-rx-elf-newlib
5 pkgver=1.18.0
6 pkgrel=1
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-rx-elf-binutils' 'cross-rx-elf-gcc-base')
13 source=(ftp://sources.redhat.com/pub/newlib/newlib-${pkgver}.tar.gz)
14 md5sums=('3dae127d4aa659d72f8ea8c0ff2a7a20')
16 build() {
17  cd ${srcdir}
19  rm -rf build
20  mkdir  build
21  cd     build
23  export CFLAGS="-O2"
25  ../newlib-${pkgver}/configure \
26    --target=rx-elf \
27    --prefix=/usr \
28    --enable-interwork \
29    --enable-multilib \
30    --with-gnu-as \
31    --with-gnu-ld \
32    --disable-nls || return 1
34  make || return 1
35  make -j1 DESTDIR=${pkgdir} install || return 1
37  rm -rf ${pkgdir}/usr/share/info
38  return 0