+
+ mkdir -p $TERMUX_PREFIX/etc/bash_completion.d/
+ cp $TERMUX_PKG_SRCDIR/contrib/completion/git-completion.bash \
+ $TERMUX_PREFIX/etc/bash_completion.d/
+
+ # Remove the build machine perl setup in termux_step_pre_configure to avoid it being packaged:
+ rm $TERMUX_PREFIX/bin/perl
+
+ # Remove clutter:
+ rm -Rf $TERMUX_PREFIX/lib/*-linux*/perl
+
+ # Remove duplicated binaries in bin/ with symlink to the one in libexec/git-core:
+ (cd $TERMUX_PREFIX/bin; ln -s -f ../libexec/git-core/git git)
+ (cd $TERMUX_PREFIX/bin; ln -s -f ../libexec/git-core/git-upload-pack git-upload-pack)
+}
+
+termux_step_post_massage () {
+ if [ ! -f libexec/git-core/git-remote-https ]; then
+ termux_error_exit "Git built without https support"
+ fi