mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-01 07:32:22 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25362 - This software is a very thin python wrapper around CMake that is encapsulated by a large amount of Python and CMake build system boilerplate. It serves the purpose of making these three commands work in Termux that currently do not work, for example as a convenient way to help resolve errors in projects or scripts that might internally use one of these three commands instead of invoking `cmake` directly: - `pip install cmake` - `python -m cmake` - `python -c 'import cmake'` - Normally, this software is distributed through PyPi at https://pypi.org/project/cmake/, but since that version only works on GNU/Linux, Mac, Windows and Alpine Linux, in this package, the software is patched to ensure it uses the binaries from the existing Termux `cmake` package as its backend, and does not conflict with the `cmake` package.
21 lines
903 B
Bash
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.0.3"
|
|
TERMUX_PKG_SRCURL="https://github.com/scikit-build/cmake-python-distributions/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz"
|
|
TERMUX_PKG_SHA256=ecb64be29518930f7f21c47bdcf9eaa9b0cbd6cab23bdc755766d5408a138ec0
|
|
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
|
|
}
|