updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gcc2 / PKGBUILD
blobf36b1fc2edba5a7220e00f31eb40e53a752fbd01
1 pkgname=gcc2
2 pkgver=2.95.3
3 pkgrel=2
4 pkgdesc="GNU C/C++ Compiler and libstdc++, version 2"
5 url="http://www.gnu.org/software/gcc"
6 license="GPL"
7 depends=('glibc')
8 install=
9 source=(ftp://ftp.gnu.org/gnu/gcc/gcc-$pkgver.tar.gz \
10         http://www.linuxfromscratch.org/patches/lfs/5.0/gcc-2.95.3-2.patch \
11         http://www.linuxfromscratch.org/patches/lfs/5.0/gcc-2.95.3-returntype-fix.patch)
12 md5sums=('f3ad4f32c2296fad758ed051b5ac8e28' '55df4c204d1157f030f64b49d45e7e64'\
13          '4ad05637a4b9d655b6ebc64061b93ee8')
15 build() {
16   cd $startdir/src/gcc-$pkgver
17   patch -Np1 -i ../gcc-2.95.3-2.patch
18   patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
19   echo timestamp > gcc/cstamp-h.in
20   mkdir ../gcc-build
21   cd ../gcc-build
22   ../gcc-$pkgver/configure --prefix=/opt/gcc2 --enable-shared --enable-languages=c,c++ --enable-threads=posix
23   make bootstrap || return 1
24   make prefix=$startdir/pkg/opt/gcc2 install