#!/bin/sh DESTINYSDIRECTORY="/i686/home/tc/Downloads" mkdir -p "$DESTINYSDIRECTORY" cd "$DESTINYSDIRECTORY" wget -c "https://github.com/CMB/edbrowse/archive/refs/heads/master.zip" unzip master.zip cd edbrowse-master/src/ tce-load -il quickjs quickjs-dev perl5 compiletc curl-dev pcre2-dev unixODBC-dev CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -I/usr/local/include/quickjs" EBDEBUG=on EBDEMIN=on make mkdir -p $DESTINYSDIRECTORY/edbrowse make DESTDIR=$DESTINYSDIRECTORY/edbrowse/ install cd ../../ mkdir -p edbrowse/usr/local/share/doc/edbrowse cp edbrowse-master/COPYING edbrowse/usr/local/share/doc/edbrowse/ mksquashfs edbrowse edbrowse.tcz md5sum edbrowse.tcz > edbrowse.tcz.md5.txt echo -e "curl.tcz\nunixODBC.tcz\npcre2.tcz" > edbrowse.tcz.dep submitqc --libs --strip