+
+ 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
+}
+
+termux_step_post_massage () {
+ # Remove perl if the symlink setup in pre_configure
+ # causes it to be included.
+ rm -Rf bin/perl*
+
+ if [ ! -f libexec/git-core/git-remote-https ]; then
+ echo "ERROR: Built without https support"
+ exit 1
+ fi