export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe" export LDFLAGS="-Wl,-O1" tar -xf libstrophe-*.tar.gz cd libstrophe-*/ ./configure make make DESTDIR=/tmp/libstrophe install cd .. rm -rf libstrophe-*/ cd /tmp/libstrophe/ find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g find . -regex ".*\.\(a\|deps\|h\|la\|m4\|pc\|vapi\)" | cpio -pdm ../libstrophe-dev find . -regex ".*\.\(a\|deps\|h\|la\|m4\|pc\|vapi\)" | xargs rm -f find . -type d | xargs rmdir -p find usr/ -not -type d > ~/libstrophe.tcz.list cd ../libstrophe-dev/ find usr/ -not -type d > ~/libstrophe-dev.tcz.list cd .. mksquashfs libstrophe/ ~/libstrophe.tcz mksquashfs libstrophe-dev/ ~/libstrophe-dev.tcz rm -rf libstrophe*/ cd md5sum libstrophe.tcz > libstrophe.tcz.md5.txt md5sum libstrophe-dev.tcz > libstrophe-dev.tcz.md5.txt du -h libstrophe*.tcz