comparison 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
comparison
equal deleted inserted replaced
0:0b7a589f6e9a 1:d6bef198ae71
1 #
2 # Build instructions for <PACKAGE>
3 #
4 # This file is sourced by the /etc/pkguser/build script.
5
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).
10
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.
19
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'
28
29 patch_commands()
30 { :
31 #patch -Np1 -i "$HOME"/package.patch
32 }
33
34 configure_commands()
35 { :
36 "$srcdir"/configure --prefix=/usr --sysconfdir=/etc --disable-nls
37 }
38
39 make_commands()
40 { :
41 make
42 }
43
44 check_commands()
45 { :
46 #make check
47 }
48
49 install_commands()
50 { :
51 make install
52 }
53