diff --git a/Anaconda3-5.0.1-0.build.sh b/Anaconda3-5.0.1-0.build.sh new file mode 100755 index 0000000..9d87946 --- /dev/null +++ b/Anaconda3-5.0.1-0.build.sh @@ -0,0 +1,38 @@ +#! /bin/bash + +PKG=Anaconda3 +VERSION=5.0.1 +BUILD=0 + +PREFIX=/pkg/$PKG-$VERSION-$BUILD +#PREFIX=/scratch/local2/$PKG-$VERSION-$BUILD + +set -xe +umask 022 + +BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp +test -d $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH +EOF +. $PREFIX/profile + +export MAKEFLAGS="-j $(nproc)" + +BUILDDIR=$PREFIX/build + +mkdir -p $BUILDDIR +cd $BUILDDIR + +test -e Anaconda3-$VERSION-Linux-x86_64.sh || wget https://repo.continuum.io/archive/Anaconda3-$VERSION-Linux-x86_64.sh +chmod +x Anaconda3-$VERSION-Linux-x86_64.sh +./Anaconda3-$VERSION-Linux-x86_64.sh -b -f -p $PREFIX + +exit