#!/bin/sh tce-load -il compiletc DestinysDirectory="/i686/home/tc/Downloads" mkdir -p $DestinysDirectory cd $DestinysDirectory wget -c "https://github.com/abderraouf-adjal/fxor/archive/refs/heads/master.zip" unzip master.zip cd fxor-master/ find . -name Makefile -type f -exec sed -i 's/-O2/-flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe/g' {} \; make PREFIX=/usr/local mkdir -p $DestinysDirectory/fxor/usr/local/share/doc/fxor/ mkdir -p $DestinysDirectory/fxor/usr/local/bin cp bin/fxor $DestinysDirectory/fxor/usr/local/bin chmod a+x $DestinysDirectory/fxor/usr/local/bin/fxor cp scripts/opssl_rand $DestinysDirectory/fxor/usr/local/bin chmod a+x $DestinysDirectory/fxor/usr/local/bin/opssl_rand mkdir -p $DestinysDirectory/fxor/usr/local/share/man/man1 cp man/fxor.1 $DestinysDirectory/fxor/usr/local/share/man/man1/ cp COPYING $DestinysDirectory/fxor/usr/local/share/doc/fxor/ cd .. mksquashfs fxor fxor.tcz md5sum fxor.tcz > fxor.tcz.md5.txt submitqc --libs --strip