Changes

Jump to navigation Jump to search
Line 30: Line 30:  
* ''build-command'', for services that have compilation stage, command how to build binaries<br>Its value is a shell command, executed inside the build directory $BUILDDIR. It must compile the source in $SRCDIR, putting the final result (ready for distribution) in $DISTDIR. If this command starts to get complicated, you should move it to a script (either inside the main source archive or in a separate dependency) and just set this attribute to the command to run the script.<br>'''NOTE''': This command will be executed not only in service developer environment but also on user side if proper binary wasn't found, so do not use here any development related dependencies like ''autogen.sh''<br>For example, followed command builds regular autotools based project
 
* ''build-command'', for services that have compilation stage, command how to build binaries<br>Its value is a shell command, executed inside the build directory $BUILDDIR. It must compile the source in $SRCDIR, putting the final result (ready for distribution) in $DISTDIR. If this command starts to get complicated, you should move it to a script (either inside the main source archive or in a separate dependency) and just set this attribute to the command to run the script.<br>'''NOTE''': This command will be executed not only in service developer environment but also on user side if proper binary wasn't found, so do not use here any development related dependencies like ''autogen.sh''<br>For example, followed command builds regular autotools based project
 
  "$SRCDIR"/configure --prefix="$DISTDIR" && make install
 
  "$SRCDIR"/configure --prefix="$DISTDIR" && make install
 +
* ''requires'', for any arch and binary implementations of the service
 +
requires = <service-name> [<not-before-version>[-<before-version>]] [; ...]
 +
* ''build-requires'', what services should be installed before building service from sources
 +
build-requires = <service-name> [<not-before-version>[-<before-version>]] [; ...]
    
To see the full explanation of configure files format(e.g. using configure filed values in other fields) in python, see [http://docs.python.org/library/configparser.html].
 
To see the full explanation of configure files format(e.g. using configure filed values in other fields) in python, see [http://docs.python.org/library/configparser.html].

Navigation menu