diff options
-rw-r--r-- | src/ob-buildenv.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index 7689c5d..d83423d 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -24,6 +24,7 @@ ob_use locale ob_use output ob_use package +ob_use deps main() { @@ -41,8 +42,17 @@ main() setup_build_helper() { - # TODO: Do. - : + IFS=', ' + + for dep in $(ob_get_source_parameter 'Build-Depends'); do + ob_parse_dep -p dep_pkg "${dep}" >/dev/null + case "${dep_pkg}" in + 'opkhelper-'*) + printf "PATH='%s:%s'\n" "${PATH}" \ + "$(ob_get_system_path 'build-helper')/${dep_pkg}" + ;; + esac + done } setup_toolchain() |