Mercurial > pkg
annotate 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 |
rev | line source |
---|---|
rlm@1 | 1 # |
rlm@1 | 2 # Build instructions for <PACKAGE> |
rlm@1 | 3 # |
rlm@1 | 4 # This file is sourced by the /etc/pkguser/build script. |
rlm@1 | 5 |
rlm@1 | 6 # Note: the ":;" before the "}" in *_commands() is a no-op that makes sure |
rlm@1 | 7 # that the function remains syntactically valid, even if you remove its |
rlm@1 | 8 # contents (e.g. remove the "configure" line, because there's nothing to |
rlm@1 | 9 # configure for the package). |
rlm@1 | 10 |
rlm@1 | 11 # ATTENTION! All functions are called with $HOME/xxxbuild/yyysrc as current |
rlm@1 | 12 # working directory (except for clean_commands which has $HOME as cwd |
rlm@1 | 13 # and unpack_commands which starts in $HOME when the |
rlm@1 | 14 # script is called). This directory is created by unpack_commands. |
rlm@1 | 15 # This means that a cd in configure_commands will NOT |
rlm@1 | 16 # carry over into make_commands, so if you're building in a different |
rlm@1 | 17 # directory than the one with the extracted source, then a cd has to be |
rlm@1 | 18 # inserted at the beginning of EVERY function. |
rlm@1 | 19 |
rlm@1 | 20 # The unpack_commands() function in the build script will automatically extract |
rlm@1 | 21 # .tar.gz and .tar.bz2 archives that match any of the space-separated |
rlm@1 | 22 # patterns in this list. |
rlm@1 | 23 # If a package has multiple archives, use patterns that make sure the |
rlm@1 | 24 # archives are extracted in the correct order, because the archive |
rlm@1 | 25 # extracted first will be the one in whose directory the build commands |
rlm@1 | 26 # will be executed. Example for bash: "bash-3.1.tar doc-3.1.tar" |
rlm@1 | 27 PATTERNS='4.3.2.tar' |
rlm@1 | 28 |
rlm@1 | 29 patch_commands() |
rlm@1 | 30 { : |
rlm@1 | 31 #patch -Np1 -i "$HOME"/package.patch |
rlm@1 | 32 } |
rlm@1 | 33 |
rlm@1 | 34 configure_commands() |
rlm@1 | 35 { : |
rlm@1 | 36 "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls |
rlm@1 | 37 } |
rlm@1 | 38 |
rlm@1 | 39 make_commands() |
rlm@1 | 40 { : |
rlm@1 | 41 make |
rlm@1 | 42 } |
rlm@1 | 43 |
rlm@1 | 44 check_commands() |
rlm@1 | 45 { : |
rlm@1 | 46 #make check |
rlm@1 | 47 } |
rlm@1 | 48 |
rlm@1 | 49 install_commands() |
rlm@1 | 50 { : |
rlm@1 | 51 make install |
rlm@1 | 52 } |
rlm@1 | 53 |