37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
31 lines
802 B
Bash
31 lines
802 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.10.2
|
|
TERMUX_PKG_SRCURL=https://github.com/ninja-build/ninja/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed
|
|
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
|
|
}
|