termux_step_get_source: do not always create $TERMUX_PKG_SRCDIR

%ci:no-build
This commit is contained in:
Henrik Grimler 2020-07-21 10:41:17 +02:00
parent 8cff1c6d4f
commit 4d3a2243a4
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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