summaryrefslogtreecommitdiff
path: root/extra/nacl-toolchain-newlib/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nacl-toolchain-newlib/PKGBUILD')
-rw-r--r--extra/nacl-toolchain-newlib/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/extra/nacl-toolchain-newlib/PKGBUILD b/extra/nacl-toolchain-newlib/PKGBUILD
new file mode 100644
index 000000000..e75369387
--- /dev/null
+++ b/extra/nacl-toolchain-newlib/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 165539 2012-08-23 08:55:39Z foutrelis $
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+pkgname=nacl-toolchain-newlib
+pkgver=8989
+pkgrel=2
+_binutilsver=2.20.1
+_newlibver=1.20.0
+_gccver=4.4.3
+pkgdesc="Native Client newlib-based toolchain (only for compiling IRT)"
+arch=('i686' 'x86_64')
+url="http://code.google.com/chrome/nativeclient/"
+license=('BSD' 'GPL3' 'LGPL3' 'GPL2' 'FDL' 'custom')
+depends=('zlib' 'mpfr')
+options=('!strip')
+source=(http://ftp.gnu.org/gnu/binutils/binutils-$_binutilsver.tar.bz2
+ ftp://sources.redhat.com/pub/newlib/newlib-$_newlibver.tar.gz
+ http://ftp.gnu.org/gnu/gcc/gcc-$_gccver/gcc-$_gccver.tar.bz2
+ http://commondatastorage.googleapis.com/nativeclient-archive2/x86_toolchain/r$pkgver/nacltoolchain-buildscripts-r$pkgver.tar.gz
+ http://commondatastorage.googleapis.com/nativeclient-archive2/x86_toolchain/r$pkgver/naclbinutils-$_binutilsver-r$pkgver.patch.bz2
+ http://commondatastorage.googleapis.com/nativeclient-archive2/x86_toolchain/r$pkgver/naclnewlib-$_newlibver-r$pkgver.patch.bz2
+ http://commondatastorage.googleapis.com/nativeclient-archive2/x86_toolchain/r$pkgver/naclgcc-$_gccver-r$pkgver.patch.bz2)
+sha256sums=('71d37c96451333c5c0b84b170169fdcb138bbb27397dc06281905d9717c8ed64'
+ 'c644b2847244278c57bec2ddda69d8fab5a7c767f3b9af69aa7aa3da823ff692'
+ '97ed664694b02b4d58ac2cafe443d02a388f9cb3645e7778843b5086a5fec040'
+ '985f12e30192a2aaceeff874a08d2bac997136b704dc2efa8728ab898562d7bd'
+ '2e8977a7a8b596fb7dbd22f09901b186a159b347f3d8b15dead3f8a694a52e09'
+ '312520d6cda73df83b943282ff264c0a29d8dfebda8409f681690f5e33c1d249'
+ 'fbfaf4ade5d95abd67d557fcc15219f2dd0292f356fc5f96d687c954424b6420')
+
+build() {
+ cd "$srcdir"
+
+ mkdir SRC
+ mv binutils-$_binutilsver SRC/binutils
+ mv newlib-$_newlibver SRC/newlib
+ mv gcc-$_gccver SRC/gcc
+
+ for _patch in *.patch; do
+ patch -d SRC -Np0 -i "$srcdir/$_patch"
+ done
+
+ make PREFIX="$srcdir/$pkgname" CANNED_REVISION="yes" build-with-newlib
+}
+
+package() {
+ cd "$srcdir"
+
+ install -d "$pkgdir/usr/lib"
+ mv $pkgname "$pkgdir/usr/lib/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: