0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-17 03:34:45 +00:00
Files
termux-packages/packages/ninja/build.sh
Termux Github Actions 22ea58801e bump(main/ninja): 1.13.1
This commit has been automatically submitted by Github Actions.
2025-07-11 00:17:58 +00:00

32 lines
846 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_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.13.1"
TERMUX_PKG_SRCURL=https://github.com/ninja-build/ninja/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f0055ad0369bf2e372955ba55128d000cfcc21777057806015b45e4accbebf23
TERMUX_PKG_DEPENDS="libandroid-spawn, libc++"
TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() {
CXXFLAGS+=" $CPPFLAGS"
LDFLAGS+=" -landroid-spawn"
}
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_PKG_MAKE_PROCESSES
fi
}
termux_step_make_install() {
cp ninja $TERMUX_PREFIX/bin
}