diff previous-work/more_control_helpers/etc/skel-package/build.conf @ 1:d6bef198ae71

add work by Matthias S. Benkmann which is the inspiration for this project.
author Robert McIntyre <rlm@mit.edu>
date Tue, 08 Jan 2013 11:45:01 +0000
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/previous-work/more_control_helpers/etc/skel-package/build.conf	Tue Jan 08 11:45:01 2013 +0000
     1.3 @@ -0,0 +1,53 @@
     1.4 +#
     1.5 +# Build instructions for <PACKAGE>
     1.6 +#
     1.7 +# This file is sourced by the /etc/pkguser/build script.
     1.8 +
     1.9 +# Note: the ":;" before the "}" in *_commands() is a no-op that makes sure 
    1.10 +# that the function remains syntactically valid, even if you remove its
    1.11 +# contents (e.g. remove the "configure" line, because there's nothing to 
    1.12 +# configure for the package).
    1.13 +
    1.14 +# ATTENTION! All functions are called with $HOME/xxxbuild/yyysrc as current
    1.15 +# working directory (except for clean_commands which has $HOME as cwd
    1.16 +# and unpack_commands which starts in $HOME when the
    1.17 +# script is called). This directory is created by unpack_commands.
    1.18 +# This means that a cd in configure_commands will NOT
    1.19 +# carry over into make_commands, so if you're building in a different
    1.20 +# directory than the one with the extracted source, then a cd has to be 
    1.21 +# inserted at the beginning of EVERY function.
    1.22 +
    1.23 +# The unpack_commands() function in the build script will automatically extract
    1.24 +# .tar.gz and .tar.bz2 archives that match any of the space-separated
    1.25 +# patterns in this list.
    1.26 +# If a package has multiple archives, use patterns that make sure the
    1.27 +# archives are extracted in the correct order, because the archive
    1.28 +# extracted first will be the one in whose directory the build commands
    1.29 +# will be executed. Example for bash: "bash-3.1.tar doc-3.1.tar"
    1.30 +PATTERNS='4.3.2.tar'
    1.31 +
    1.32 +patch_commands()
    1.33 +{ :
    1.34 +  #patch -Np1 -i "$HOME"/package.patch
    1.35 +}
    1.36 +
    1.37 +configure_commands()
    1.38 +{ :
    1.39 +  "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls
    1.40 +}
    1.41 +
    1.42 +make_commands()
    1.43 +{ :
    1.44 +  make
    1.45 +}
    1.46 +
    1.47 +check_commands()
    1.48 +{ :
    1.49 +  #make check
    1.50 +}
    1.51 +
    1.52 +install_commands()
    1.53 +{ :
    1.54 +  make install
    1.55 +}
    1.56 +