Add basic TERMUX_PKG_BUILD_DEPENDS support
This commit is contained in:
parent
24b828afb1
commit
6980dd1851
@ -308,6 +308,7 @@ termux_step_setup_variables() {
|
||||
TERMUX_PKG_RM_AFTER_INSTALL=""
|
||||
TERMUX_PKG_BREAKS="" # https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
|
||||
TERMUX_PKG_DEPENDS=""
|
||||
TERMUX_PKG_BUILD_DEPENDS=""
|
||||
TERMUX_PKG_HOMEPAGE=""
|
||||
TERMUX_PKG_DESCRIPTION="FIXME:Add description"
|
||||
TERMUX_PKG_FOLDERNAME=""
|
||||
|
@ -38,6 +38,7 @@ class TermuxBuildFile(object):
|
||||
|
||||
def _get_dependencies(self):
|
||||
pkg_dep_prefix = 'TERMUX_PKG_DEPENDS='
|
||||
pkg_build_dep_prefix = 'TERMUX_PKG_BUILD_DEPENDS='
|
||||
subpkg_dep_prefix = 'TERMUX_SUBPKG_DEPENDS='
|
||||
|
||||
with open(self.path, encoding="utf-8") as f:
|
||||
@ -45,6 +46,8 @@ class TermuxBuildFile(object):
|
||||
for line in f:
|
||||
if line.startswith(pkg_dep_prefix):
|
||||
prefix = pkg_dep_prefix
|
||||
elif line.startswith(pkg_build_dep_prefix):
|
||||
prefix = pkg_build_dep_prefix
|
||||
elif line.startswith(subpkg_dep_prefix):
|
||||
prefix = subpkg_dep_prefix
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user