Skip to content

Commit

Permalink
Merge pull request #299 from mariux64/add-codium
Browse files Browse the repository at this point in the history
VSCodium: Add version 1.93.0.24253
  • Loading branch information
david authored Sep 11, 2024
2 parents 96ea230 + bbdf49c commit a7291ad
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions codium-1.93.0.24253-0.build.sh
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

0 comments on commit a7291ad

Please sign in to comment.