summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 15:02:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 15:02:55 (GMT)
commit91f5887226eac4fd2caac4c8adbf5809b5be01a2 (patch)
treeb17959e3b927f273291f22226a41303e4100fb31 /abs/extra
parent7176ab9b8afa3146f8aabe5097389d284308876f (diff)
downloadlinhes_pkgbuild-91f5887226eac4fd2caac4c8adbf5809b5be01a2.zip
linhes_pkgbuild-91f5887226eac4fd2caac4c8adbf5809b5be01a2.tar.gz
linhes_pkgbuild-91f5887226eac4fd2caac4c8adbf5809b5be01a2.tar.bz2
nacl-toolchain-newlib: first build needed by chromium
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/nacl-toolchain-newlib/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/abs/extra/nacl-toolchain-newlib/PKGBUILD b/abs/extra/nacl-toolchain-newlib/PKGBUILD
new file mode 100644
index 0000000..0635d1e
--- /dev/null
+++ b/abs/extra/nacl-toolchain-newlib/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 165618 2012-08-27 12:19:30Z foutrelis $
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+pkgname=nacl-toolchain-newlib
+pkgver=9513
+pkgrel=1
+_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'
+ '3c3d6e63ef8caec24a9e368b72e6c94a28edc8c016da5fef73a312b4a3514909'
+ 'caaefc2bf90325f152bd0998a29fcad425522a22c6ce373366c4dde2b76c5338'
+ 'be9e48f8714eaadfc3349ac6d8b077050b719d16a3e7592573670cee7a3c4934'
+ 'ccbc83627bc7c36f7bbe994ccffe4d51584d8812f2ed62f08528c173e06dcf85')
+
+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: