cd /tmp mkdir package DESTDIR='/tmp/package' tce-load -w -i compiletc squashfs-tools autoconf curl export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" curl -L -k -O http://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2017.09.28.tar.xz tar Jxvf autoconf-archive-2017.09.28.tar.xz cd autoconf-archive-2017.09.28/ ./configure make make install DESTDIR=/tmp/package # Create package directory . /etc/init.d/tc-functions PKGDIR=/tmp/`getMajorVer`.x/`getBuild` mkdir -p $PKGDIR/tar.gz $PKGDIR/tcz # Create autoconf-archive.tcz package cd $DESTDIR tar -czf $PKGDIR/tar.gz/autoconf-archive.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/autoconf-archive.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/autoconf-archive.tcz.list cd $PKGDIR/tcz md5sum autoconf-archive.tcz > autoconf-archive.tcz.md5.txt # Cleanup cd /tmp rm -rf $DESTDIR rm -fr autoconf-archive-2017.09.28