1 # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
3 pkgname=nacl-toolchain-newlib
4 pkgdesc='Native Client is an open-source technology that allows you to build web applications that seamlessly execute native compiled code inside the browser.'
10 arch=('x86_64' 'i686')
11 depends=('zlib' 'mpfr' )
12 makedepends=('realpath' 'bison' 'bash')
14 license=('BSD' 'GPL3' 'LGPL3' 'GPL2' 'FDL' 'custom')
15 url='http://code.google.com/chrome/nativeclient/'
16 source=(http://mirrors.usc.edu/pub/gnu/binutils/binutils-"${binutilsver}".tar.bz2
17 ftp://sources.redhat.com/pub/newlib/newlib-"${newlibver}".tar.gz
18 http://mirrors.usc.edu/pub/gnu/gcc/gcc-"${gccver}"/gcc-"${gccver}".tar.bz2
19 http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r"${pkgver}"/nacltoolchain-buildscripts-r"${pkgver}".tar.gz
20 http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r"${pkgver}"/naclbinutils-"${binutilsver}"-r"${pkgver}".patch.bz2
21 http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r"${pkgver}"/naclnewlib-"${newlibver}"-r"${pkgver}".patch.bz2
22 http://gsdview.appspot.com/nativeclient-archive2/x86_toolchain/r"${pkgver}"/naclgcc-"${gccver}"-r"${pkgver}".patch.bz2)
23 md5sums=('9cdfb9d6ec0578c166d3beae5e15c4e5'
24 '3dae127d4aa659d72f8ea8c0ff2a7a20'
25 'fe1ca818fc6d2caeffc9051fe67ff103'
26 '921b0eee8ad8ccf3cb89878732b6aa39'
27 '20352a753c9741d754d39bed8170bae5'
28 'e09f0f3386718170417d57ead515ae1a'
29 'eaf7dcce2e012ce329e7cecedb14d519')
32 mkdir "${srcdir}"/"${pkagename}"/SRC
33 mv "${srcdir}"/"${pkagename}"/binutils-"${binutilsver}" "${srcdir}"/"${pkagename}"/SRC/binutils
34 mv "${srcdir}"/"${pkagename}"/newlib-"${newlibver}" "${srcdir}"/"${pkagename}"/SRC/newlib
35 mv "${srcdir}"/"${pkagename}"/gcc-"${gccver}" "${srcdir}"/"${pkagename}"/SRC/gcc
36 msg 'Patching Sources'
37 patch -d "${srcdir}"/"${pkagename}"/SRC -p0 < naclbinutils-"${binutilsver}"-r"${pkgver}".patch
38 patch -d "${srcdir}"/"${pkagename}"/SRC -p0 < naclnewlib-"${newlibver}"-r"${pkgver}".patch
39 patch -d "${srcdir}"/"${pkagename}"/SRC -p0 < naclgcc-"${gccver}"-r"${pkgver}".patch
41 msg 'Go to make sex with your Sweetie, or "Build the Eiffel Tower with chopsticks" (or self-abuse XD), or, or... {insert here "which takes a long time"}... this take a very LONG, LONG TIME'
42 make ${MAKEFLAGS} PREFIX="${srcdir}"/build CANNED_REVISION="yes" build-with-newlib
46 cd "${srcdir}"/"${pkagename}"
47 mkdir "${pkgdir}"/opt/
48 cp -R "${srcdir}"/build "${pkgdir}"/opt/"${pkgname}"