Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

gcc43 PKGBUILD

By: a guest on Apr 7th, 2010  |  syntax: Bash  |  size: 1.92 KB  |  hits: 386  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=gcc43
  2. _ver=4.3
  3. pkgver=4.3.4
  4. pkgrel=1
  5. pkgdesc="The GNU Compiler Collection"
  6. arch=('i686' 'x86_64')
  7. license=('GPL' 'LGPL')
  8. url="http://gcc.gnu.org"
  9. depends=('glibc' 'binutils' 'gmp' 'mpfr' 'ppl' 'cloog-ppl')
  10. makedepends=('flex' 'bison')
  11. options=('!libtool')
  12. source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,fortran,objc,java}-${pkgver}.tar.bz2
  13.         gcc_pure64.patch
  14.         gcc-hash-style-both.patch
  15.         buildfix_new_bison.patch)
  16. md5sums=('575b3220bb8e7060939c429fc8608d22'
  17.          'd526e34eec101b8c69254ed5215b6d41'
  18.          '3e702a563d97bb2806dd81739c22806d'
  19.          '37ba6440062ddf9bab43e6ae660c890b'
  20.          'dd41be44634d39d145cdb715cde39be6'
  21.          '4030ee1c08dd1e843c0225b772360e76'
  22.          'bb420bc84b1104455b7230b1cd4b96c2'
  23.          '6895f128e905bfcb26e328899235e553')
  24.  
  25.  
  26. build() {
  27.   cd ${srcdir}/gcc-${pkgver}
  28.   # Don't install libiberty
  29.   sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
  30.  
  31.   if [ "${CARCH}" = "x86_64" ]; then
  32.     patch -Np1 -i ../gcc_pure64.patch || return 1
  33.   fi
  34.   patch -Np0 -i ${srcdir}/gcc-hash-style-both.patch || return 1
  35.   patch -Np0 -i ${srcdir}/buildfix_new_bison.patch || return 1
  36.  
  37.   echo ${pkgver} > gcc/BASE-VER
  38.  
  39.   # Don't run fixincludes
  40.   sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
  41.  
  42.   mkdir build
  43.   cd build
  44.   ../configure --prefix=/usr --enable-shared \
  45.       --enable-languages=c,c++ \
  46.       --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info \
  47.       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
  48.       --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
  49.       --with-tune=generic \
  50.       --disable-werror --enable-checking=release \
  51.       --program-suffix=-${_ver} --enable-version-specific-runtime-libs
  52.   make || return 1
  53.   make -j1 DESTDIR=${pkgdir} install || return 1
  54.  
  55.   # Lazy way of dealing with conflicting man and info pages...
  56.   rm -rf ${pkgdir}/usr/share
  57. }