chiark / gitweb /
Add basic TERMUX_PKG_BUILD_DEPENDS support
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 8 Aug 2017 11:28:52 +0000 (13:28 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 8 Aug 2017 11:28:52 +0000 (13:28 +0200)
build-package.sh
scripts/buildorder.py

index 1628c41ea95df9f6edfdd22b99793afc2e2c239f..7e54d257bb7776f70a0be02d9220bd19579ce8f8 100755 (executable)
@@ -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=""
index fd7b2a640801d4d663415570ae491f1408199c7e..1890a0d9374aad0d205fef6e35f0a0f7acb0abcc 100755 (executable)
@@ -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: