# Exit on error:
set -e

wget http://downloads.sourceforge.net/sourceforge/squashfs/squashfs4.3.tar.gz
tar xf squashfs4.3.tar.gz
cd squashfs4.3/squashfs-tools

make \
    INSTALL_DIR=/bin \
    XZ_SUPPORT=1 \
    install

cd ../..
rm -rf squashfs4.3
rm squashfs4.3.tar.gz

exit 0
