rlm@1: # rlm@1: # Build instructions for rlm@1: # rlm@1: # This file is sourced by the /etc/pkguser/build script. rlm@1: rlm@1: # Note: the ":;" before the "}" in *_commands() is a no-op that makes sure rlm@1: # that the function remains syntactically valid, even if you remove its rlm@1: # contents (e.g. remove the "configure" line, because there's nothing to rlm@1: # configure for the package). rlm@1: rlm@1: # ATTENTION! All functions are called with $HOME/xxxbuild/yyysrc as current rlm@1: # working directory (except for clean_commands which has $HOME as cwd rlm@1: # and unpack_commands which starts in $HOME when the rlm@1: # script is called). This directory is created by unpack_commands. rlm@1: # This means that a cd in configure_commands will NOT rlm@1: # carry over into make_commands, so if you're building in a different rlm@1: # directory than the one with the extracted source, then a cd has to be rlm@1: # inserted at the beginning of EVERY function. rlm@1: rlm@1: # The unpack_commands() function in the build script will automatically extract rlm@1: # .tar.gz and .tar.bz2 archives that match any of the space-separated rlm@1: # patterns in this list. rlm@1: # If a package has multiple archives, use patterns that make sure the rlm@1: # archives are extracted in the correct order, because the archive rlm@1: # extracted first will be the one in whose directory the build commands rlm@1: # will be executed. Example for bash: "bash-3.1.tar doc-3.1.tar" rlm@1: PATTERNS='4.3.2.tar' rlm@1: rlm@1: patch_commands() rlm@1: { : rlm@1: #patch -Np1 -i "$HOME"/package.patch rlm@1: } rlm@1: rlm@1: configure_commands() rlm@1: { : rlm@1: "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls rlm@1: } rlm@1: rlm@1: make_commands() rlm@1: { : rlm@1: make rlm@1: } rlm@1: rlm@1: check_commands() rlm@1: { : rlm@1: #make check rlm@1: } rlm@1: rlm@1: install_commands() rlm@1: { : rlm@1: make install rlm@1: } rlm@1: