# Note: depends on cmake
# Note: depends on libarcus
# Note: depends on stb
# Note: depends on rapidjson
# Note: depends on polyclipping
wget -c https://github.com/Ultimaker/CuraEngine/archive/3.6.0/CuraEngine-3.6.0.tar.gz
tar -xzf CuraEngine-3.6.0.tar.gz
cd CuraEngine-3.6.0
sed -i -e 's/-Werror//' CMakeLists.txt
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DUSE_SYSTEM_LIBS=ON ..
make # Doesn't mind -j#
make install