#!/bin/sh DESTINYSDIRECTORY="/i686/home/tc/Downloads" mkdir -p "$DESTINYSDIRECTORY" cd "$DESTINYSDIRECTORY" wget -c "https://github.com/bellard/quickjs/archive/refs/heads/master.zip" unzip master.zip cd quickjs-master/ tce-load -il compiletc NewContentToMakefile=`sed 's/^LIBS=-lm/LIBS=-lm -latomic/g;s/-O2/-Os -fuse-linker-plugin -march=i486 -mtune=i686 -pipe/g' Makefile` echo "$NewContentToMakefile" > Makefile make mkdir -p "$DESTINYSDIRECTORY/quickjs/" make DESTDIR=$DESTINYSDIRECTORY/quickjs/ install mkdir -p $DESTINYSDIRECTORY/quickjs-dev/usr/local/ cp -pRf $DESTINYSDIRECTORY/quickjs/usr/local/include $DESTINYSDIRECTORY/quickjs-dev/usr/local/ rm -rf $DESTINYSDIRECTORY/quickjs/usr/local/include/ mkdir -p $DESTINYSDIRECTORY/quickjs/usr/local/share/doc/quickjs/ cp $DESTINYSDIRECTORY/quickjs-master/LICENSE $DESTINYSDIRECTORY/quickjs/usr/local/share/doc/quickjs/ mksquashfs quickjs quickjs.tcz mksquashfs quickjs-dev/ quickjs-dev.tcz md5sum quickjs.tcz > quickjs.tcz.md5.txt md5sum quickjs-dev.tcz > quickjs-dev.tcz.md5.txt tce-load -il submitqc echo "gcc_libs.tcz" > quickjs.tcz.dep echo "quickjs.tcz" > quickjs-dev.tcz submitqc --libs