[source]
tar = "https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz"

[build]
template = "custom"
dependencies = [
    "openssl1",
]
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
"""
