Sugar Network/Recipe Specification: Difference between revisions
| Line 42: | Line 42: | ||
This is a required section (but see also [[#Presets|presets]]). It describes the main recipe component. | This is a required section (but see also [[#Presets|presets]]). It describes the main recipe component. | ||
''' | '''slug''' = <name> | ||
A short name of the package. Only lower alphabetic, numeric, "+" or "-" symbols are allowed. Slug value should be at least two characters long and start with an alphanumeric character. | |||
With ''project'' option, ''slug'' will be used in several cases: | |||
* fully qualified OBS package name on OBS - <code>''package''/''slug''</code>, | |||
* in 0isntall feed url - <code><nowiki>http</nowiki>://sweets.sugarlabs.org/''project''/''slug''</code>, | |||
* in native package names generated from this recipe in form of <code>sugar-''slug''</code>. | |||
''' | '''project''' = <colon-separated-obs-project-path> | ||
If current package is a different implementation of another one, ''clone'' should be used to point to the | The project on OBS to store this package. | ||
'''clone''' = <colon-separated-obs-project-path> | |||
If current package is a different implementation of another one, ''clone'' should be used to point to the project where this clone is stored. Note that ''project'' should still point to the original project. | |||
'''name''' = <package-name> | '''name''' = <package-name> | ||