git: enable 'contrib/subtree'

This commit is contained in:
Leonid Pliushch 2019-03-18 21:13:48 +02:00
parent d1ba429e82
commit 36b4417c80

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="GPL-2.0"
# less is required as a pager for git log, and the busybox less does not handle used escape sequences.
TERMUX_PKG_DEPENDS="libcurl, less, openssl, pcre2"
TERMUX_PKG_VERSION=2.21.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=8ccb1ce743ee991d91697e163c47c11be4bf81efbdd9fb0b4a7ad77cc0020d28
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/software/scm/git/git-${TERMUX_PKG_VERSION}.tar.xz
## This requires a working $TERMUX_PREFIX/bin/sh on the host building:
@ -53,10 +54,21 @@ termux_step_pre_configure() {
CPPFLAGS="-I$TERMUX_PKG_SRCDIR $CPPFLAGS"
}
termux_step_post_make_install() {
termux_step_make() {
make -j $TERMUX_MAKE_PROCESSES $TERMUX_PKG_EXTRA_MAKE_ARGS
make -j $TERMUX_MAKE_PROCESSES -C contrib/subtree $TERMUX_PKG_EXTRA_MAKE_ARGS
}
termux_step_make_install() {
make $TERMUX_PKG_EXTRA_MAKE_ARGS install
make -C contrib/subtree $TERMUX_PKG_EXTRA_MAKE_ARGS install
# Installing man requires asciidoc and xmlto, so git uses separate make targets for man pages
make -j $TERMUX_MAKE_PROCESSES install-man
make -j $TERMUX_MAKE_PROCESSES -C contrib/subtree install-man
}
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/etc/bash_completion.d/
cp $TERMUX_PKG_SRCDIR/contrib/completion/git-completion.bash \
$TERMUX_PKG_SRCDIR/contrib/completion/git-prompt.sh \