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/PKGBUILD79
1 files changed, 0 insertions, 79 deletions
diff --git a/extra/nacl-toolchain-newlib/PKGBUILD b/extra/nacl-toolchain-newlib/PKGBUILD
deleted file mode 100644
index 362f962aa..000000000
--- a/extra/nacl-toolchain-newlib/PKGBUILD
+++ /dev/null
@@ -1,79 +0,0 @@
-# $Id: PKGBUILD 193478 2013-08-21 02:11:50Z foutrelis $
-# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
-# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
-
-pkgname=nacl-toolchain-newlib
-pkgver=12029
-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
- binutils-texinfo-r0.patch
- gcc-texinfo-r0.patch)
-sha256sums=('71d37c96451333c5c0b84b170169fdcb138bbb27397dc06281905d9717c8ed64'
- 'c644b2847244278c57bec2ddda69d8fab5a7c767f3b9af69aa7aa3da823ff692'
- '97ed664694b02b4d58ac2cafe443d02a388f9cb3645e7778843b5086a5fec040'
- 'a77912c4aac01142bd1c2f684f9933d6fcd39f0e67a1058858be50f0db18da7e'
- '3b0e41b7923a90d611e598b31ed30062cfa3cf2fc2cbe7304e340a0acc780186'
- '2de88079c500a694b73dab5a6a3690b2126ea0df498f1e27c5819b7d4256cb1a'
- 'c98bda783fbc9726a9d0374118b1315f4ade4fe3bb5cbc96511b7a80b385dd70'
- '64ba7c3f5edbe33b17312ab6da6c4b9e244e47289bde796a3078bf73072a0139'
- '7eab20b6db6a7224984fd4b5bff1742571b0429428ea2af02f83f82f3de63070')
-
-prepare() {
- cd "$srcdir"
-
- mkdir SRC
- mv binutils-$_binutilsver SRC/binutils
- mv newlib-$_newlibver SRC/newlib
- mv gcc-$_gccver SRC/gcc
-
- for _patch in *-r$pkgver.patch; do
- patch -d SRC -Np0 -i "$srcdir/$_patch"
- done
-
- cd SRC
-
- # Fix build with texinfo 5.1
- patch -d binutils -Np1 -i "$srcdir/binutils-texinfo-r0.patch"
- patch -d gcc -Np1 -i "$srcdir/gcc-texinfo-r0.patch"
-}
-
-build() {
- cd "$srcdir"
-
- CFLAGS+=" $CPPFLAGS"
- CXXFLAGS+=" $CPPFLAGS"
- unset CPPFLAGS
-
- make PREFIX="$srcdir/$pkgname" CANNED_REVISION="yes" build-with-newlib
-}
-
-package() {
- cd "$srcdir"
-
- install -d "$pkgdir/usr/lib"
- mv $pkgname "$pkgdir/usr/lib/$pkgname"
-
- # NaCL license
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
- # Newlib license
- install -m644 -t "$pkgdir/usr/share/licenses/$pkgname/" \
- SRC/newlib/COPYING.{NEWLIB,LIBGLOSS}
-}
-
-# vim:set ts=2 sw=2 et: