Commit Graph

4 Commits

Author SHA1 Message Date
Henrik Grimler 20bd0f0dc0
scripts: use git+[...] instead of [...].git for git urls
Not all source code hosters support the .git suffix (for example
sourcehut).  Use a git+ prefix instead to indicate that a url is a git
repo.
2023-01-01 18:31:38 +01:00
Leonid Pliushch 22ae9c583e build-package.sh: fix TERMUX_PKG_SRCURL unbound variable
When no source URL defined, the following error occurs:

 /home/builder/termux-packages/scripts/build/get_source/termux_step_get_source.sh: line 2: TERMUX_PKG_SRCURL: unbound variable
2020-07-22 20:08:46 +03:00
Henrik Grimler 4d3a2243a4 termux_step_get_source: do not always create $TERMUX_PKG_SRCDIR
%ci:no-build
2020-07-21 10:42:38 +02:00
Henrik Grimler 4e902a41a5 building packages: create termux_step_get_source function
Calls termux_git_clone_src if TERMUX_PKG_SRCURL ends with .git, and
termux_download_src_archive and termux_extract_src_archive otherwise.
termux_step_extract_package has been split up into the latter two
functions.

termux_step_post_extract_package has been renamed to
termux_step_post_get_source to reflect these changes.
2020-07-21 10:14:00 +02:00