# Maintainer: Mike Staszel pkgbase=gcc pkgname=('gcc' 'gcc-libs') pkgver=4.4.3 pkgrel=3 pkgdesc='The GNU Compiler Collection' arch=(arm) license=(GPL LGPL custom) url='http://gcc.gnu.org' groups=('base-devel') makedepends=(flex 'gcc>=3.4' 'gawk>=3.1.5' 'make>=3.80') source=(http://gcc-uk.internet.bs/releases/gcc-$pkgver/gcc-{core,g++,fortran,objc}-$pkgver.tar.bz2) md5sums=('054b66f315b3d04ad06544ce26e72365' 'cd179ec4f05ee17ce76464da25a2674c' '0f8fa5e9edbcf156a061312cae0715ee' '34711c4de46eaf79aa018206dbec4389') options=('!libtool') build() { mkdir -p $srcdir/gcc-build cd $srcdir/gcc-build ../gcc-$pkgver/configure --prefix=/usr \ --enable-languages=c,c++,fortran,objc,obj-c++ \ --disable-libstdcxx-pch \ --enable-__cxa_atexit \ --with-arch=armv5te \ --disable-multilib \ --enable-threads=posix || return 1 make || return 1 } package_gcc() { depends=("gcc-libs==$pkgver-$pkgrel" 'binutils>=2.19.1' 'mpfr>=2.4.1' 'cloog-ppl>=0.15.3') groups=(base-devel) license=(GPL) cd $srcdir/gcc-build make DESTDIR=$pkgdir install || return 1 ln -sf gcc $pkgdir/usr/bin/cc ln -sf g++ $pkgdir/usr/bin/c++ # Remove libraries provided by gcc-libs. rm -f $pkgdir/usr/lib/lib* } package_gcc-libs() { depends=('glibc>=2.11') groups=(base) pkgdesc='Runtime libraries shipped by GCC for C and C++ languages' license=(LGPL custom) cd $srcdir/gcc-build make DESTDIR=$pkgdir install-target-libgcc install-target-libmudflap install-target-libssp install-target-libstdc++-v3 install-target-libgomp install-target-libgfortran install-target-libobjc || return 1 # make target `install-target-libstdc++-v3' installs include files. # Those are provided by gcc. rm -rf $pkgdir/usr/include # make target `install-target-libgomp' installs include files as well. # Those, too, should be provided by gcc. rm -rf $pkgdir/usr/lib/gcc # Install Runtime Library Exception license. install -Dm644 ../gcc-$pkgver/COPYING.RUNTIME \ $pkgdir/usr/share/licenses/$pkgname/RUNTIME.LIBRARY.EXCEPTION }