tce-load -w -i compiletc.tcz squashfs-tools.tcz cd /tmp wget https://github.com/KDE/extra-cmake-modules/archive/v5.48.0.tar.gz tar xzvf v5.48.0.tar.gz cd extra-cmake-modules-5.48.0/ export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local make DESTDIR=`mktemp -d` chmod 755 $DESTDIR make DESTDIR=$DESTDIR install # Create package directory . /etc/init.d/tc-functions PKGDIR=/tmp/`getMajorVer`.x/`getBuild` mkdir -p $PKGDIR/tar.gz $PKGDIR/tcz # Create extra-cmake-modules.tcz package cd $DESTDIR tar -czf $PKGDIR/tar.gz/extra-cmake-modules.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/extra-cmake-modules.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/extra-cmake-modules.tcz.list cd $PKGDIR/tcz md5sum extra-cmake-modules.tcz > extra-cmake-modules.tcz.md5.txt # Cleanup cd /tmp rm -rf $DESTDIR rm -rf extra-cmake-modules-5.48.0/