The Autopackage API

Table of Contents / Public library / Build system integration

Build system integration

These functions should be used to (un)build the source code in your specfile's [BuildPrepare] and [BuildUnprepare] sections. So far only Autoconf/Automake is supported.

Variables in this category

$APKG_BUILD_SKIP_CONFIGURE
$APKG_BUILD_SKIP_MAKE

Functions in this category

prepareBuild
unprepareBuild


Details

$APKG_BUILD_SKIP_CONFIGURE
When set to 1, prepareBuild() will not run configure. This, in combination with $APKG_BUILD_SKIP_CONFIGURE, is useful if you only want to create a package but not recompile all the source code. If you're not using prepareBuild, your [BuildPrepare] code should respect this variable. See also: $APKG_BUILD_SKIP_MAKE


$APKG_BUILD_SKIP_MAKE
When set to 1, prepareBuild() will not run make. This, in combination with $APKG_BUILD_SKIP_CONFIGURE, is useful if you only want to create a package but not recompile all the source code. If you're not using prepareBuild, your [BuildPrepare] code should respect this variable. See also: $APKG_BUILD_SKIP_CONFIGURE


prepareBuild
Syntax: prepareBuild
Configure and compile the source code, and install files to a temporay build root directory. That build root directory will be compressed by makeinstaller, which will be the main payload for your package. This function can only be used if your project is using the GNU Autoconf/Automake build system. See also: $APKG_BUILD_SKIP_CONFIGURE and $APKG_BUILD_SKIP_MAKE.
Example:
[BuildPrepare]
prepareBuild
# Yes, this is all.


unprepareBuild
Syntax: unprepareBuild
Cleanup the temporary build root direcory made by prepareBuild().
Example:
[BuildUnprepare]
unprepareBuild


Last update: 10/6/2003