4.4. Build functions

The file calldump, described in the previous section, calls method map at the end. That is a function, performing entire build of single pacakge. It is implemented in file any/corelib/map.sh and consists of following function calls:

pkg_pretend
pkg_setup
pkg_context
src_fetch
src_prepare
src_config
src_compile
pkg_rminstall
src_install
pkg_install
pkg_config
pkg_root
pkg_pack

Each of these functions performs dedicated build stage. For example, src_fetch provides the availability of an archive with package sources, and src_prepare applies the patches. The most of given functions are the same for all packages, therefore they are implemented in the library of any system.

Some functions are individual for each package. Mostly they are src_config, src_compile, src_install. Their implementation reside in anybuilds - files, individual for each package. The example of anybuild and those functions is listed in the next section.

See any-map(7) for details about all build functions, representing the map sequence.