tce-load -i compiletc libX11-dev libXaw-dev fftw-dev ncurses-dev readline-dev cd /tmp wget https://sourceforge.net/projects/ngspice/files/ng-spice-rework/30/ngspice-30.tar.gz tar x -zvf ngspice-30.tar.gz cd ngspice-30 mkdir release cd release export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CPPFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-Wl,-O1" ../configure --with-x --enable-xspice --enable-cider --with-fftw3=yes --with-readline=yes --disable-debug make && sudo make DESTDIR=/tmp/ngspice install cd /tmp sudo rm -rf /tmp/ngspice/usr/local/include sudo rm -rf /tmp/ngspice/usr/local/share/man sudo rm /tmp/ngspice/usr/local/share/ngspice/dlmain.c tce-load -i squashfs-tools mksquashfs ngspice ngspice.tcz cd ngspice find usr -not -type d > ../ngspice.tcz.list cd .. md5sum ngspice.tcz > ngspice.tcz.md5.txt echo libX11.tcz > ngspice.tcz.dep echo libXaw.tcz >> ngspice.tcz.dep echo fftw.tcz >> ngspice.tcz.dep echo readline.tcz >> ngspice.tcz.dep echo ncurses.tcz >> ngspice.tcz.dep