diff --git a/recipes/cmake/recipe.toml b/recipes/cmake/recipe.toml new file mode 100644 index 0000000000000000000000000000000000000000..7c3d24b115fb162035ca9517bc17f78735936e47 --- /dev/null +++ b/recipes/cmake/recipe.toml @@ -0,0 +1,23 @@ +[source] +tar = "https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz" + +[build] +template = "custom" +dependencies = [ + "openssl", +] +script = """ +COOKBOOK_CONFIGURE="cmake" +COOKBOOK_CONFIGURE_FLAGS=( + -DCMAKE_VERBOSE_MAKEFILE=On + -DCMAKE_CROSSCOMPILING=True + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX="/" + "${COOKBOOK_SOURCE}" +) +set -x +cookbook_configure +mv -vT "${COOKBOOK_STAGE}"/usr/bin "${COOKBOOK_STAGE}/bin" +rmdir -v "${COOKBOOK_STAGE}"/usr +set +x +"""