termux_step_get_source: do not always create $TERMUX_PKG_SRCDIR
%ci:no-build
This commit is contained in:
parent
8cff1c6d4f
commit
4d3a2243a4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user