Created
February 21, 2014 17:55
-
-
Save reening/9139482 to your computer and use it in GitHub Desktop.
Revisions
-
reening created this gist
Feb 21, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ #!/bin/sh VERSION="0.10.25" UPSTREAM="http://nodejs.org/dist/v$VERSION/node-v$VERSION.tar.gz" ARCH="$(dpkg --print-architecture)" BUILDDIR="$PWD/build-v$VERSION" wget $UPSTREAM -O upstream-v$VERSION.tar.gz tar xf upstream-v$VERSION.tar.gz mkdir $BUILDDIR cd node-v$VERSION CONFIGFLAGS="--prefix=$BUILDDIR" case "$ARCH" in armhf|armel) CONFIGFLAGS="$CONFIGFLAGS --without-snapshot" ;; esac ./configure $CONFIGFLAGS make -j4 make install cd .. rm upstream-v$VERSION.tar.gz rm -rf node-v$VERSION