termux-packages/scripts/build/get_source/termux_step_get_source.sh

11 lines
238 B
Bash

termux_step_get_source() {
if [ "${TERMUX_PKG_SRCURL: -4}" == ".git" ]; then
termux_git_clone_src
else
mkdir -p $TERMUX_PKG_SRCDIR
termux_download_src_archive
cd $TERMUX_PKG_TMPDIR
termux_extract_src_archive
fi
}