Files
termux-packages/packages/python-cmake/build.sh
termux-pacman-bot 0b6e7d3f3e bump(main/python-cmake): 4.2.0
This commit has been automatically submitted by Github Actions.
2025-11-21 18:41:34 +00:00

21 lines
903 B
Bash

TERMUX_PKG_HOMEPAGE=https://cmake-python-distributions.readthedocs.io/
TERMUX_PKG_DESCRIPTION="Python wrapper for CMake"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="4.2.0"
TERMUX_PKG_SRCURL="https://github.com/scikit-build/cmake-python-distributions/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=38c37c0b7175e56f61f4d8cce2926a298fb02ccfbb1ac045538a14fbe269ed98
TERMUX_PKG_DEPENDS="cmake, cmake-curses-gui, python, python-pip"
TERMUX_PKG_SETUP_PYTHON=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_configure() {
termux_setup_cmake
# prevent any downloading or compiling of CMake source code,
# but allow the normal installation of all other files
mkdir -p empty
echo 'cmake_minimum_required(VERSION 4.0)' > CMakeLists.txt
echo 'install(DIRECTORY empty DESTINATION "${CMAKE_INSTALL_PREFIX}")' >> CMakeLists.txt
}