Sugar Network/Recipe Specification: Difference between revisions
No edit summary |
|||
| Line 188: | Line 188: | ||
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''' | '''NOTE''' The commands in this section 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 the ''[Maintain]'' section. | ||
'''requires''' = <dependency-name> [(=|>=|<) <version>] [; ...] | '''requires''' = <dependency-name> [(=|>=|<) <version>] [; ...] | ||
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 the ''[Package]'' sections. | ||
'''configure''' = <shell-command> | '''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. | Shell command to configure sources before building, e.g, invoking the ''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 the source code does not require a configuration stage, this option could be omited. | ||
'''build''' = <shell-command> | '''build''' = <shell-command> | ||
Shell command to build binaries from sources. If source code does not require building stage, this option could be omited. | Shell command to build binaries from sources. If the source code does not require a building stage, this option could be omited. | ||
'''install''' = <shell-command> | '''install''' = <shell-command> | ||
Shell command | Shell command to place files that are ready for distribution into the ''%(DISTDIR)s'' directory. | ||
=== [Maintain] === | === [Maintain] === | ||
| Line 212: | Line 212: | ||
'''exec''' = <shell-command> | '''exec''' = <shell-command> | ||
How to bundle package. By default, 0sugar just bundles the entire root directory excluding temporary files. | How to bundle package. By default, 0sugar just bundles the entire root directory, excluding temporary files. | ||
'''requires''' = <dependency> [(=|>=|<) <version>] [; ...] | '''requires''' = <dependency> [(=|>=|<) <version>] [; ...] | ||