New _alpm_dep_edge function
[pacman-ng.git] / doc / makepkg.conf.5.txt
blobb5a49ba86f6da0a1ed234de0700349662f8086bb
1 /////
2 vim:set ts=4 sw=4 syntax=asciidoc noet:
3 /////
4 makepkg.conf(5)
5 ===============
7 Name
8 ----
9 makepkg.conf - makepkg configuration file
12 Synopsis
13 --------
14 {sysconfdir}/makepkg.conf, ~/.makepkg.conf
17 Description
18 -----------
19 Configuration options for makekpg are stored in makepkg.conf. This file is
20 sourced, so you can include any special compiler flags you wish to use. This is
21 helpful for building for different architectures, or with different
22 optimizations. However, only the variables described below are exported to the
23 build environment.
25 NOTE: This does not guarantee that all package Makefiles will use your exported
26 variables. Some of them are non-standard.
28 The default file is fairly well commented, so it may be easiest to simply
29 follow directions given there for customization.
32 Options
33 -------
34 **DLAGENTS=(**\'protocol::/path/to/command [options]' ...**)**::
35         Sets the download agents used to fetch source files specified with a URL in
36         the linkman:PKGBUILD[5] file. Options can be specified for each command as
37         well; the download URL is placed on the end of the command. This is more
38         flexible than the former `FTPAGENT` variable, as any protocol can have a
39         download agent. Several examples are provided in the default makepkg.conf.
40         All instances of `%u` will be replaced with the download URL. If present,
41         instances of `%o` will be replaced with the local filename, plus a ``.part''
42         extension, which allows to do file resumes properly.
44 **CARCH=**"carch"::
45         Specifies your computer architecture; possible values include such things
46         as ``i686'', ``x86_64'', ``ppc'', etc. This should be automatically set on
47         installation.
49 **CHOST=**"chost"::
50         A string such as ``i686-pc-linux-gnu'', do not touch unless you know what
51         you are doing. This can be commented out by most users if desired.
53 **CFLAGS=**"cflags"::
54         Flags used for the C compiler. This is a key part to the use of makepkg.
55         Usually several options are specified, and the most common string resembles
56         something like this: ``-march=i686 -O2 -pipe''. Another useful option may
57         be `-mcpu` in place of `-march`. Read gcc(1) for more details on the wide
58         variety of compiler flags available.
60 **CXXFLAGS=**"cxxflags"::
61         Flags used for the C++ compiler; see CFLAGS for more info.
63 **MAKEFLAGS=**"makeflags"::
64         This is often used to set the number of jobs used, for example, `-j2`.
65         Other flags that make accepts can also be passed.
67 **BUILDENV=(**fakeroot !distcc color !ccache !xdelta**)**::
68         This array contains options that affect the build environment, the defaults
69         are shown here. All options should always be left in the array; to enable
70         or disable an option simply remove or place an ``!'' at the front of the
71         option. Each works as follows:
73         *fakeroot*;;
74                 Allow building packages as a non-root user. This is highly recommended.
76         *distcc*;;
77                 Use the distributed C/C++/ObjC compiler to spread compilation among
78                 multiple machines. If this is enabled, `DISTCC_HOSTS` must be specified
79                 as well.
81         *color*;;
82                 Colorize output messages, making output easier to read.
84         *ccache*;;
85                 Use ccache to cache compilation by default. This allows for faster
86                 compiles if you are continuously recompiling the same packages. It can
87                 be disabled for individual packages by placing `!ccache` in the
88                 PKGBUILD options array.
90         *xdelta*;;
91                 Generate an xdelta binary patch from previous to current package. The
92                 previous package must be available in the makepkg cache directory for
93                 this to occur.
95 **DISTCC_HOSTS=**"host1 ..."::
96         If using DistCC, this is used to specify a space-delimited list of hosts
97         running in the DistCC cluster. In addition, you will want to modify your
98         `MAKEFLAGS`.
100 **OPTIONS=(**strip docs libtool emptydirs zipman**)**::
101         This array contains options that affect the default packaging. They are
102         equivalent to options that can be placed in the PKGBUILD; the defaults are
103         shown here. All options should always be left in the array; to enable or
104         disable an option simply remove or place an ``!'' at the front of the
105         option. Each works as follows:
107         *strip*;;
108                 Strip symbols from binaries and libraries. If you frequently use a
109                 debugger on programs or libraries, it may be helpful to disable this
110                 option.
112         *docs*;;
113                 Save doc and info directories. If you wish to delete doc and info
114                 directories, specify `!docs' in the array.
116         *libtool*;;
117                 Leave libtool (.la) files in packages. Specify `!libtool' to remove
118                 them.
120         *emptydirs*;;
121                 Leave empty directories in packages.
123         *zipman*;;
124                 Compress man pages with gzip.
126 **INTEGRITY_CHECK=(**check1 ...**)**::
127         File integrity checks to use. Multiple checks may be specified; this
128         affects both generation and checking. The current valid options are:
129         `md5`, `sha1`, `sha256`, `sha384`, and `sha512`.
131 **DOC_DIRS=(**usr/{,share/}{info,doc} ...**)**::
132         If "!docs" is specified in the OPTIONS array, this variable will
133         instruct makepkg where to look to remove docs. If you build packages
134         that are located in opt/, you may need to add the directory to this
135         array. *NOTE:* Do not add the leading slash to the directory name.
137 **PKGDEST=**"/path/to/folder"::
138         If this value is not set, packages will by default be placed in the
139         current directory (location of the linkman:PKGBUILD[5]). Many people
140         like to keep all their packages in one place so this option allows
141         this behavior. A common location is ``/home/packages''.
143 **SRCDEST=**"/path/to/folder"::
144         If this value is not set, downloaded source files will only be stored
145         in the current directory. Many people like to keep all source files in
146         a central location for easy cleanup, so this path can be set here.
148 **PACKAGER=**"John Doe <john@doe.com>"::
149         This value is used when querying a package to see who was the builder.
150         It is recommended you change this to your name and email address.
152 *BUILDSCRIPT*, *PKGEXT*, *SRCEXT*, *DB_COMPRESSION*, *DB_CHECKSUMS*::
153         Do not touch these unless you know what you are doing.
156 See Also
157 --------
158 linkman:makepkg[8], linkman:pacman[8], linkman:PKGBUILD[5]
160 include::footer.txt[]