termux-packages/packages/ninja/build.sh
Butta 11e8c46ded glib: update from 2.64.4 to 2.64.5
libcurl: update from 7.71.1 to 7.72.0

libgrpc: update from 1.31.0 to 1.31.1

ninja: update from 1.10.0 to 1.10.1
2020-08-19 20:36:13 +05:30

30 lines
770 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.10.1
TERMUX_PKG_SRCURL=https://github.com/ninja-build/ninja/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a6b6f7ac360d4aabd54e299cc1d8fa7b234cd81b9401693da21221c62569a23e
TERMUX_PKG_DEPENDS="libc++, libandroid-spawn"
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_MAKE_PROCESSES
fi
}
termux_step_make_install() {
cp ninja $TERMUX_PREFIX/bin
}