Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 62 lines (46 sloc) 1.54 KB
#! /bin/bash
PKG=codium
VERSION=1.93.0.24253
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
set -xe
umask 022
BUILD_TMPDIR=/scratch/local2/$PKG-$VERSION-$BUILD.build.tmp
test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR )
mkdir -p $BUILD_TMPDIR/home
export TMPDIR=$BUILD_TMPDIR
export HOME=$BUILD_TMPDIR/home
exec </dev/null
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
. $PREFIX/profile
export MAKEFLAGS="-j $(nproc)"
BUILDDIR=$PREFIX/build
mkdir -p $BUILDDIR
cd $BUILDDIR
true && {
# github actions node
# wget "https://nodejs.org/download/release/v18.15.0/node-v18.15.0-linux-x64.tar.gz"
# braucht spezielle node version und auch genau die Version
SRCURL="https://beehive.molgen.mpg.de/d9f50cc4eee87bd85764e20844920560/node-v18.15.0-linux-x64.tar.gz"
PKGARC=${SRCURL##*/}
PKGVER=${PKGARC%.*.*}
PKGVER=${PKGVER%-linux-x64}
test -e ${PKGARC} || wget -nv ${SRCURL}
test -d ${PKGVER} || mkdir -p ${PKGVER} && tar -x --directory=${PKGVER} -f ${PKGARC} --strip-components=1
PATH=${BUILDDIR}/${PKGVER}/bin:$PATH
export PATH
cd $PKGVER
npm install yarn
ln -sv ${BUILDDIR}/${PKGVER}/node_modules/.bin/yarn ${BUILDDIR}/${PKGVER}/bin/yarn
cd $BUILDDIR
}
test -d vscodium || git clone https://github.com/VSCodium/vscodium.git
cd vscodium && git checkout $VERSION
./build/build.sh
cp -avr VSCode-linux-x64/* $PREFIX
exit