view previous-work/more_control_helpers/etc/skel-package/build.conf @ 30:f1d0574937b5

minor cosmetic changes.
author Robert McIntyre <rlm@mit.edu>
date Tue, 15 Jan 2013 03:56:59 +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 sure
7 # that the function remains syntactically valid, even if you remove its
8 # contents (e.g. remove the "configure" line, because there's nothing to
9 # configure for the package).
11 # ATTENTION! All functions are called with $HOME/xxxbuild/yyysrc as current
12 # working directory (except for clean_commands which has $HOME as cwd
13 # and unpack_commands which starts in $HOME when the
14 # script is called). This directory is created by unpack_commands.
15 # This means that a cd in configure_commands will NOT
16 # carry over into make_commands, so if you're building in a different
17 # directory than the one with the extracted source, then a cd has to be
18 # inserted at the beginning of EVERY function.
20 # The unpack_commands() function in the build script will automatically extract
21 # .tar.gz and .tar.bz2 archives that match any of the space-separated
22 # patterns in this list.
23 # If a package has multiple archives, use patterns that make sure the
24 # archives are extracted in the correct order, because the archive
25 # extracted first will be the one in whose directory the build commands
26 # 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.patch
32 }
34 configure_commands()
35 { :
36 "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls
37 }
39 make_commands()
40 { :
41 make
42 }
44 check_commands()
45 { :
46 #make check
47 }
49 install_commands()
50 { :
51 make install
52 }