Sugar Network/Recipe Specification: Difference between revisions
| Line 187: | Line 187: | ||
How to build binaries. If package contains binary implementations, this section should be present to describe the building process. | How to build binaries. If package contains binary implementations, this section should be present to describe the building process. | ||
'''NOTE''' This section commands will be executed not only in the developer's environment but also in the user's, if a proper binary wasn't found; so move all development-related commands, like autogen.sh, to ''[Maintain]'' section. | |||
'''requires''' = <dependency-name> [(=|>=|<) <version>] [; ...] | '''requires''' = <dependency-name> [(=|>=|<) <version>] [; ...] | ||
| Line 192: | Line 194: | ||
What [[#Package_names|dependencies]] should be present before building the package from sources, in addition to ''requires'' values from ''[Package]'' sections. | What [[#Package_names|dependencies]] should be present before building the package from sources, in addition to ''requires'' values from ''[Package]'' sections. | ||
''' | '''configure''' = <shell-command> | ||
Shell command to configure sources before building, e.g, invoking ''configure'' script in auto-tools based projects. It is important to use [[#Predefined_options|predefined constants]], like ''PREFIX'', during configuration to prepare valid Zero packages. If source code does not require configuration stage, this option could be omited. | |||
'''build''' = <shell-command> | |||
Shell command to build binaries from sources. If source code does not require building stage, this option could be omited. | |||
'''install''' = <shell-command> | '''install''' = <shell-command> | ||
Shell command should place files, that are ready for distribution, to ''%(DISTDIR)s'' directory. | |||
=== [Maintain] === | === [Maintain] === | ||