Changes

Jump to navigation Jump to search
Line 132: Line 132:  
* ''all'' for noarch (by default)
 
* ''all'' for noarch (by default)
 
* ''any'' for binaries to use the current architecture
 
* ''any'' for binaries to use the current architecture
  −
=== [Source] ===
  −
  −
Section makes sense only while packaging 3rd-party applications.
  −
  −
'''source''' = <url>
  −
  −
Url to download sources tarball.
  −
  −
'''patch''' = <path-to-patch> [patch-level] [; ...]
  −
  −
Patch downloaded tarball.
      
=== [Buid] ===
 
=== [Buid] ===
Line 170: Line 158:     
Various options that make sense only in the package-developer's environment.
 
Various options that make sense only in the package-developer's environment.
 +
 +
'''source''' = <url>
 +
 +
While packaging 3rd-party applications, url to download sources tarball.
 +
 +
'''patch''' = <path-to-patch> [patch-level] [; ...]
 +
 +
If ''source'' option is used, 3rd-party sources might be patched.
    
  '''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. Option might be used, e.g., to execute {{Code|make dist}} command.
 +
 
 +
'''include''' = <glob-pattern> [; ...]
 +
'''exclude''' = <glob-pattern> [; ...]
 +
 
 +
If neither ''source'' nor ''exec'' options were used, all files will be bundled taking into account these [[Activity Team/Zero Sugar/Packaging Guide#Glob patterns|glob patterns]].
    
  '''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
 
  '''requires''' = <dependency> [(=|>=|<) <version>] [; ...]
   −
The packages that should be present before invoking the ''exec'' command. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
+
The packages that should be present before creating sources tarball. For example, if the ''exec'' command generates .c files from .vala, the vala dependency should be mentioned in the ''requires'' option.
    
== Presets ==
 
== Presets ==

Navigation menu