Mercurial > pkg
view previous-work/more_control_helpers/etc/skel-package/build.conf @ 4:fe56b4698cf8
add install-init, and refine pkg.pl.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 08 Jan 2013 15:41:29 +0000 |
parents | d6bef198ae71 |
children |
line wrap: on
line source
1 #2 # Build instructions for <PACKAGE>3 #4 # This file is sourced by the /etc/pkguser/build script.6 # Note: the ":;" before the "}" in *_commands() is a no-op that makes sure7 # that the function remains syntactically valid, even if you remove its8 # contents (e.g. remove the "configure" line, because there's nothing to9 # configure for the package).11 # ATTENTION! All functions are called with $HOME/xxxbuild/yyysrc as current12 # working directory (except for clean_commands which has $HOME as cwd13 # and unpack_commands which starts in $HOME when the14 # script is called). This directory is created by unpack_commands.15 # This means that a cd in configure_commands will NOT16 # carry over into make_commands, so if you're building in a different17 # directory than the one with the extracted source, then a cd has to be18 # inserted at the beginning of EVERY function.20 # The unpack_commands() function in the build script will automatically extract21 # .tar.gz and .tar.bz2 archives that match any of the space-separated22 # patterns in this list.23 # If a package has multiple archives, use patterns that make sure the24 # archives are extracted in the correct order, because the archive25 # extracted first will be the one in whose directory the build commands26 # will be executed. Example for bash: "bash-3.1.tar doc-3.1.tar"27 PATTERNS='4.3.2.tar'29 patch_commands()30 { :31 #patch -Np1 -i "$HOME"/package.patch32 }34 configure_commands()35 { :36 "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls37 }39 make_commands()40 { :41 make42 }44 check_commands()45 { :46 #make check47 }49 install_commands()50 { :51 make install52 }