-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from mariux64/add-codium
VSCodium: Add version 1.93.0.24253
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#! /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 |