diff --git a/scripts/build/get_source/termux_download_src_archive.sh b/scripts/build/get_source/termux_download_src_archive.sh index 20ea68300..e74b691e1 100644 --- a/scripts/build/get_source/termux_download_src_archive.sh +++ b/scripts/build/get_source/termux_download_src_archive.sh @@ -1,7 +1,4 @@ termux_download_src_archive() { - if [ -z "${TERMUX_PKG_SRCURL:=""}" ] || [ "${TERMUX_PKG_SKIP_SRC_EXTRACT-false}" = "true" ] || [ "$TERMUX_PKG_METAPACKAGE" = "true" ]; then - return - fi local PKG_SRCURL=(${TERMUX_PKG_SRCURL[@]}) local PKG_SHA256=(${TERMUX_PKG_SHA256[@]}) if [ ! ${#PKG_SRCURL[@]} == ${#PKG_SHA256[@]} ] && [ ! ${#PKG_SHA256[@]} == 0 ]; then diff --git a/scripts/build/get_source/termux_step_get_source.sh b/scripts/build/get_source/termux_step_get_source.sh index 072d2f1b8..deff700f7 100644 --- a/scripts/build/get_source/termux_step_get_source.sh +++ b/scripts/build/get_source/termux_step_get_source.sh @@ -2,7 +2,10 @@ termux_step_get_source() { if [ "${TERMUX_PKG_SRCURL: -4}" == ".git" ]; then termux_git_clone_src else - mkdir -p $TERMUX_PKG_SRCDIR + if [ -z "${TERMUX_PKG_SRCURL:=""}" ] || [ "${TERMUX_PKG_SKIP_SRC_EXTRACT-false}" = "true" ] || [ "$TERMUX_PKG_METAPACKAGE" = "true" ]; then + mkdir -p "$TERMUX_PKG_SRCDIR" + return + fi termux_download_src_archive cd $TERMUX_PKG_TMPDIR termux_extract_src_archive