7.8.2 ‘pkg_depends()

This function calculates the dependencies for the requested package, returning the variable $deps. This variable can then be passed to pkg_order() in order to generate an ordered list for building packages.