updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gcc42-bin / PKGBUILD
blobd3203a6671134ea77d094a64473445204ea7e400
1 # Contributor: Alan Kligman <alan.kligman@gmail.com>
3 pkgname=gcc42-bin
4 pkgver=4.2.4
5 _pkgrel=6
6 pkgrel=7
7 pkgdesc="The GNU C preprocessor"
8 arch=(i686 x86_64)
9 url="http://packages.debian.org"
10 license=('gpl')
11 depends=('gmp4' 'mpfr2')
12 provides=("gcc42=4.2.4")
14 if [[ "${CARCH}" == "i686" ]]; then
15     _srcarch="i386"
16 else
17     _srcarch="amd64"
20 source=(
21 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/cpp-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
22 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/g++-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
23 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/g++-4.2-multilib_${pkgver}-${_pkgrel}_${_srcarch}.deb
24 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
25 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2-base_${pkgver}-${_pkgrel}_${_srcarch}.deb
26 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2-locales_${pkgver}-${_pkgrel}_all.deb
27 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2-multilib_${pkgver}-${_pkgrel}_${_srcarch}.deb
28 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gfortran-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
29 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gfortran-4.2-multilib_${pkgver}-${_pkgrel}_${_srcarch}.deb
30 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gobjc-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
31 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gobjc++-4.2_${pkgver}-${_pkgrel}_${_srcarch}.deb
32 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gobjc-4.2-multilib_${pkgver}-${_pkgrel}_${_srcarch}.deb
33 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/gobjc++-4.2-multilib_${pkgver}-${_pkgrel}_${_srcarch}.deb
34 http://ftp.debian.org/debian/pool/main/g/gcc-4.2/libstdc++6-4.2-dev_${pkgver}-${_pkgrel}_${_srcarch}.deb
36 md5sums=(
37 8cc62191f36301ce636d60f63d0f3ef4
38 1da3cbeeea9990de5d8e6c9ba2f59c9d
39 926110617a9cb8880584bfbb99d3f90c
40 9384fa895e4d6ea21f2d4f1323269b3a
41 8b91419c24713ff3419562df588caaa4
42 54b1b91303cc105c249716ba4ddf546c
43 57bcc5e68f8ea1e34ff12c56e6cfd738
44 a8c651763cace33a306593ab7d8258fc
45 f4070819e0f63c29615ece662b07dac2
46 14c2e32bc454743c6b63807a29dbfa67
47 1b67fe29e26205aac106337ee31ca9b4
48 8e7c6c939e7eb06425f1f6d8f2990df8
49 519ef5c513c04258579d01c98b50651d
50 e0715966e98d2aa597b869f5f2fad13b
53 build() {
54   msg "Extracting Debian package..."
55   for i in *.deb; do 
56   ar xv $i && tar xvfm data.tar.gz
57   done
58   install -d ${startdir}/pkg/usr
59   cp -av usr ${startdir}/pkg