c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
26 lines
687 B
Bash
26 lines
687 B
Bash
TERMUX_PKG_HOMEPAGE=https://ninja-build.org
|
|
TERMUX_PKG_DESCRIPTION="A small build system with a focus on speed"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_VERSION=1.9.0
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SRCURL=https://github.com/ninja-build/ninja/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=5d7ec75828f8d3fd1a0c2f31b5b0cea780cdfe1031359228c428c1a48bfcd5b9
|
|
TERMUX_PKG_DEPENDS="libc++"
|
|
|
|
termux_step_configure() {
|
|
$TERMUX_PKG_SRCDIR/configure.py
|
|
}
|
|
|
|
termux_step_make() {
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
|
$TERMUX_PKG_SRCDIR/configure.py --bootstrap
|
|
else
|
|
termux_setup_ninja
|
|
ninja -j $TERMUX_MAKE_PROCESSES
|
|
fi
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
cp ninja $TERMUX_PREFIX/bin
|
|
}
|