2020-07-16 23:51:05 +02:00
|
|
|
termux_step_get_source() {
|
2020-07-22 19:08:46 +02:00
|
|
|
: "${TERMUX_PKG_SRCURL:=""}"
|
|
|
|
|
2020-07-16 23:51:05 +02:00
|
|
|
if [ "${TERMUX_PKG_SRCURL: -4}" == ".git" ]; then
|
|
|
|
termux_git_clone_src
|
|
|
|
else
|
2020-07-22 19:08:46 +02:00
|
|
|
if [ -z "${TERMUX_PKG_SRCURL}" ] || [ "${TERMUX_PKG_SKIP_SRC_EXTRACT-false}" = "true" ] || [ "$TERMUX_PKG_METAPACKAGE" = "true" ]; then
|
|
|
|
mkdir -p "$TERMUX_PKG_SRCDIR"
|
|
|
|
return
|
|
|
|
fi
|
2020-07-16 23:51:05 +02:00
|
|
|
termux_download_src_archive
|
|
|
|
cd $TERMUX_PKG_TMPDIR
|
|
|
|
termux_extract_src_archive
|
|
|
|
fi
|
|
|
|
}
|