updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / gcc41 / PKGBUILD
blob2823ed1a0f5944bd0ad0a90a7fd60bdad1840bb3
1 # Contributor: Claudio Pisa <clauz@ninux.org>
2 # based con gcc43 PKGBUILD
4 pkgname=gcc41
5 _ver=4.1
6 pkgver=4.1.2
7 pkgrel=1
8 pkgdesc="The GNU Compiler Collection"
9 arch=('i686' 'x86_64')
10 license=('GPL' 'LGPL')
11 url="http://gcc.gnu.org"
12 depends=('glibc' 'binutils' 'gmp' 'mpfr' 'ppl' 'cloog-ppl')
13 makedepends=('flex' 'bison')
14 options=('!libtool')
15 source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2)
16 md5sums=('2af3fb599635219171c6ae1f3034888a' 
17                  '75c6d5fa3415d614314caf0f509e8933' 
18                  '39621038e425c73f955db8c8db411c34' 
19                  'abda05c0ab99059e8f9e7a625361fd87' 
20                  '83cad4d52ff4a47b69e57012a5efe534')
23 build() {
24   if ! locale -a | grep ^de_DE; then
25           echo "You need the de_DE locale to build gcc."
26     return 1
27   fi
29   cd ${srcdir}/gcc-${pkgver}
30   # Don't install libiberty
31   sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
33   echo ${pkgver} > gcc/BASE-VER
35   # Don't run fixincludes
36   sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
38   mkdir build
39   cd build
40   ../configure --prefix=/usr --enable-shared \
41       --enable-languages=c,c++ \
42       --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info \
43       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
44       --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
45       --with-tune=i686 \
46       --disable-werror --enable-checking=release \
47       --program-suffix=-${_ver} --enable-version-specific-runtime-libs
48   make || return 1
49   make DESTDIR=${pkgdir} install || return 1
51   # Lazy way of dealing with conflicting man and info pages...
52   rm -rf ${pkgdir}/usr/share