2007-07-06 16:54:18 -04:00
|
|
|
/////
|
2011-06-22 12:06:34 -04:00
|
|
|
vim:set ts=4 sw=4 syntax=asciidoc noet spell spelllang=en_us:
|
2007-07-06 16:54:18 -04:00
|
|
|
/////
|
2007-07-02 19:22:01 -04:00
|
|
|
makepkg.conf(5)
|
|
|
|
===============
|
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
makepkg.conf - makepkg configuration file
|
|
|
|
|
|
|
|
|
2007-07-06 11:07:53 -04:00
|
|
|
Synopsis
|
|
|
|
--------
|
2014-07-02 11:04:13 -04:00
|
|
|
{sysconfdir}/makepkg.conf, $XDG_CONFIG_HOME/pacman/makepkg.conf, ~/.makepkg.conf
|
2007-07-06 11:07:53 -04:00
|
|
|
|
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
Description
|
|
|
|
-----------
|
2014-02-01 19:42:44 -05:00
|
|
|
Configuration options for makepkg are stored in makepkg.conf. This file is
|
|
|
|
sourced so you can include any special compiler flags you wish to use. This is
|
|
|
|
helpful when building for different architectures or with different
|
2007-07-16 12:57:02 -04:00
|
|
|
optimizations. However, only the variables described below are exported to the
|
|
|
|
build environment.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
NOTE: This does not guarantee that all package Makefiles will use your exported
|
|
|
|
variables. Some of them are non-standard.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2012-09-17 02:07:24 -04:00
|
|
|
The system-wide configuration file is found in {sysconfdir}/makepkg.conf.
|
2014-02-01 19:42:44 -05:00
|
|
|
Individual options can be overridden (or added to) on a per-user basis in
|
2014-07-02 11:04:13 -04:00
|
|
|
$XDG_CONFIG_HOME/pacman/makepkg.conf or ~/.makepkg.conf, with the former
|
|
|
|
taking priority.
|
2012-09-17 02:07:24 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
The default file is fairly well commented, so it may be easiest to simply
|
|
|
|
follow directions given there for customization.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
2007-07-16 12:57:02 -04:00
|
|
|
**DLAGENTS=(**\'protocol::/path/to/command [options]' ...**)**::
|
|
|
|
Sets the download agents used to fetch source files specified with a URL in
|
2007-12-29 01:24:15 -05:00
|
|
|
the linkman:PKGBUILD[5] file. Options can be specified for each command as
|
2016-01-26 03:41:56 -05:00
|
|
|
well, and any protocol can have a download agent. Any spaces in option
|
|
|
|
arguments are required to be escaped to avoid being split. Several
|
|
|
|
examples are provided in the default makepkg.conf.
|
2008-08-23 10:34:42 -04:00
|
|
|
+
|
|
|
|
If present, `%u` will be replaced with the download URL. Otherwise, the
|
|
|
|
download URL will be placed on the end of the command. If present, `%o` will
|
2014-02-01 19:42:44 -05:00
|
|
|
be replaced with the local file name, plus a ``.part'' extension, which allows
|
2008-08-23 10:34:42 -04:00
|
|
|
makepkg to handle resuming file downloads.
|
2007-07-16 12:57:02 -04:00
|
|
|
|
2014-06-29 08:36:22 -04:00
|
|
|
**VCSCLIENTS=(**\'protocol::package' ...**)**::
|
|
|
|
Sets the packages required to fetch version controlled source files. When
|
|
|
|
required, makepkg will check that these packages are installed or are included
|
|
|
|
in the `depends` or `makedepends` arrays in the PKGBUILD.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**CARCH=**"carch"::
|
|
|
|
Specifies your computer architecture; possible values include such things
|
|
|
|
as ``i686'', ``x86_64'', ``ppc'', etc. This should be automatically set on
|
|
|
|
installation.
|
|
|
|
|
|
|
|
**CHOST=**"chost"::
|
2014-08-07 00:43:20 -04:00
|
|
|
A string such as ``i686-pc-linux-gnu''; do not touch this unless you know what
|
2007-07-16 12:57:02 -04:00
|
|
|
you are doing. This can be commented out by most users if desired.
|
|
|
|
|
2011-12-22 05:19:18 -05:00
|
|
|
**CPPFLAGS=**"cppflags"::
|
2014-08-07 00:43:20 -04:00
|
|
|
Flags used for the C preprocessor; see CFLAGS for more information.
|
2011-12-22 05:19:18 -05:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**CFLAGS=**"cflags"::
|
2007-07-02 19:22:01 -04:00
|
|
|
Flags used for the C compiler. This is a key part to the use of makepkg.
|
2007-07-16 12:57:02 -04:00
|
|
|
Usually several options are specified, and the most common string resembles
|
|
|
|
something like this: ``-march=i686 -O2 -pipe''. Another useful option may
|
|
|
|
be `-mcpu` in place of `-march`. Read gcc(1) for more details on the wide
|
|
|
|
variety of compiler flags available.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**CXXFLAGS=**"cxxflags"::
|
2007-07-02 19:22:01 -04:00
|
|
|
Flags used for the C++ compiler; see CFLAGS for more info.
|
|
|
|
|
2009-01-01 12:32:05 -05:00
|
|
|
**LDFLAGS=**"ldflags"::
|
|
|
|
Flags used for the linker. Several options may be specified with common
|
2009-01-13 00:44:06 -05:00
|
|
|
usage resembling ``-Wl,--hash-style=gnu''. Read ld(1) for more details on
|
2009-01-01 12:32:05 -05:00
|
|
|
available linker flags.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**MAKEFLAGS=**"makeflags"::
|
2014-02-01 19:42:44 -05:00
|
|
|
This is often used to set the number of jobs used; for example, `-j2`.
|
2007-07-02 19:22:01 -04:00
|
|
|
Other flags that make accepts can also be passed.
|
|
|
|
|
2012-09-23 03:06:34 -04:00
|
|
|
**DEBUG_CFLAGS=**"debug_cflags"::
|
2014-02-01 20:43:18 -05:00
|
|
|
Additional compiler flags appended to `CFLAGS` for use in debugging. Usually
|
2012-09-23 03:06:34 -04:00
|
|
|
this would include: ``-g''. Read gcc(1) for more details on the wide
|
|
|
|
variety of compiler flags available.
|
|
|
|
|
|
|
|
**DEBUG_CXXFLAGS=**"debug_cxxflags"::
|
|
|
|
Debug flags used for the C++ compiler; see DEBUG_CFLAGS for more info.
|
|
|
|
|
2014-03-08 05:46:21 -05:00
|
|
|
**BUILDENV=(**!distcc color !ccache check !sign**)**::
|
2014-02-01 19:42:44 -05:00
|
|
|
This array contains options that affect the build environment; the defaults
|
2007-07-16 12:57:02 -04:00
|
|
|
are shown here. All options should always be left in the array; to enable
|
2014-02-01 19:42:44 -05:00
|
|
|
or disable an option, simply remove or add an ``!'' at the front of the
|
2012-09-17 03:02:17 -04:00
|
|
|
option. If an option is specified multiple times, the final value takes
|
|
|
|
precedence. Each option works as follows:
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*distcc*;;
|
|
|
|
Use the distributed C/C++/ObjC compiler to spread compilation among
|
|
|
|
multiple machines. If this is enabled, `DISTCC_HOSTS` must be specified
|
|
|
|
as well.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*color*;;
|
2007-07-02 19:22:01 -04:00
|
|
|
Colorize output messages, making output easier to read.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*ccache*;;
|
|
|
|
Use ccache to cache compilation by default. This allows for faster
|
|
|
|
compiles if you are continuously recompiling the same packages. It can
|
|
|
|
be disabled for individual packages by placing `!ccache` in the
|
|
|
|
PKGBUILD options array.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2010-12-15 09:06:43 -05:00
|
|
|
*check*;;
|
|
|
|
Run the check() function if present in the PKGBUILD. This can be
|
|
|
|
enabled or disabled for individual packages through the use of
|
2014-02-01 19:42:44 -05:00
|
|
|
makepkg's '\--check' and '\--nocheck' options, respectively.
|
2010-12-15 09:06:43 -05:00
|
|
|
|
2008-06-02 04:27:00 -04:00
|
|
|
*sign*;;
|
2014-02-01 20:43:18 -05:00
|
|
|
Generate a PGP signature file using GnuPG. This will execute 'gpg
|
|
|
|
\--detach-sign \--use-agent' on the built package to generate a detached
|
2014-02-01 19:42:44 -05:00
|
|
|
signature file, using the GPG agent, if it is available. The signature
|
|
|
|
file will be the entire file name of the package with a ``.sig''
|
2008-06-02 04:27:00 -04:00
|
|
|
extension.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**DISTCC_HOSTS=**"host1 ..."::
|
2007-07-02 19:22:01 -04:00
|
|
|
If using DistCC, this is used to specify a space-delimited list of hosts
|
|
|
|
running in the DistCC cluster. In addition, you will want to modify your
|
2007-07-16 12:57:02 -04:00
|
|
|
`MAKEFLAGS`.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2014-01-28 06:37:00 -05:00
|
|
|
**BUILDDIR=**"/path/to/directory"::
|
2014-02-01 19:42:44 -05:00
|
|
|
If this value is not set, packages will, by default, be built in
|
|
|
|
subdirectories of the directory that makepkg is called from. This
|
2014-01-28 06:37:00 -05:00
|
|
|
option allows setting the build location to another directory.
|
2011-06-15 00:32:42 -04:00
|
|
|
Incorrect use of `$startdir` in a PKGBUILD may cause building with
|
|
|
|
this option to fail.
|
|
|
|
|
2011-04-17 08:38:35 -04:00
|
|
|
**GPGKEY=**""::
|
2014-02-01 19:42:44 -05:00
|
|
|
Specify a key to use for GPG signing instead of the default key in the
|
2011-09-01 16:03:39 -04:00
|
|
|
keyring. Can be overridden with makepkg's '\--key' option.
|
2011-04-17 08:38:35 -04:00
|
|
|
|
2016-02-01 20:38:42 -05:00
|
|
|
**OPTIONS=(**strip docs libtool staticlibs emptydirs zipman purge**)**::
|
2014-02-01 19:42:44 -05:00
|
|
|
This array contains options that affect default packaging. They are
|
2007-07-16 12:57:02 -04:00
|
|
|
equivalent to options that can be placed in the PKGBUILD; the defaults are
|
|
|
|
shown here. All options should always be left in the array; to enable or
|
2014-02-01 19:42:44 -05:00
|
|
|
disable an option, simply remove or add an ``!'' at the front of the
|
2012-09-17 03:02:17 -04:00
|
|
|
option. If an option is specified multiple times, the final value takes
|
|
|
|
precedence. Each option works as follows:
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*strip*;;
|
|
|
|
Strip symbols from binaries and libraries. If you frequently use a
|
|
|
|
debugger on programs or libraries, it may be helpful to disable this
|
|
|
|
option.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*docs*;;
|
2008-08-12 13:00:18 -04:00
|
|
|
Save doc directories. If you wish to delete doc directories, specify
|
2009-01-13 01:10:36 -05:00
|
|
|
`!docs` in the array. The directories affected are specified by the
|
2008-08-23 19:51:56 -04:00
|
|
|
`DOC_DIRS` variable.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*libtool*;;
|
2009-01-13 00:44:06 -05:00
|
|
|
Leave libtool (.la) files in packages. Specify `!libtool` to remove
|
2007-07-16 12:57:02 -04:00
|
|
|
them.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2013-03-04 20:03:43 -05:00
|
|
|
*staticlibs*;;
|
|
|
|
Leave static library (.a) files in packages. Specify `!staticlibs` to
|
2014-02-01 19:42:44 -05:00
|
|
|
remove them, if they have a shared counterpart.
|
2013-03-04 20:03:43 -05:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*emptydirs*;;
|
2007-07-02 19:22:01 -04:00
|
|
|
Leave empty directories in packages.
|
|
|
|
|
2008-03-12 19:25:38 -04:00
|
|
|
*zipman*;;
|
2009-01-03 05:19:12 -05:00
|
|
|
Compress manual (man and info) pages with gzip. The directories
|
|
|
|
affected are specified by the `MAN_DIRS` variable.
|
2008-03-12 19:25:38 -04:00
|
|
|
|
2008-12-07 06:14:32 -05:00
|
|
|
*purge*;;
|
2009-01-03 05:19:12 -05:00
|
|
|
Remove files specified by the `PURGE_TARGETS` variable from the
|
2008-12-07 06:14:32 -05:00
|
|
|
package.
|
|
|
|
|
2012-09-23 03:06:34 -04:00
|
|
|
*debug*;;
|
|
|
|
Add the user-specified debug flags as specified in DEBUG_CFLAGS and
|
2012-09-23 10:30:46 -04:00
|
|
|
DEBUG_CXXFLAGS to their counterpart buildflags. Creates a separate
|
2013-04-01 02:46:48 -04:00
|
|
|
package containing the debug symbols when used with `strip'.
|
2012-09-23 03:06:34 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**INTEGRITY_CHECK=(**check1 ...**)**::
|
2007-07-02 19:22:01 -04:00
|
|
|
File integrity checks to use. Multiple checks may be specified; this
|
|
|
|
affects both generation and checking. The current valid options are:
|
2007-07-16 12:57:02 -04:00
|
|
|
`md5`, `sha1`, `sha256`, `sha384`, and `sha512`.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2010-06-16 22:01:09 -04:00
|
|
|
**STRIP_BINARIES=**"--strip-all"::
|
|
|
|
Options to be used when stripping binaries. See linkman:strip[1]
|
2009-12-21 14:26:28 -05:00
|
|
|
for details.
|
|
|
|
|
2010-06-16 22:01:09 -04:00
|
|
|
**STRIP_SHARED=**"--strip-unneeded"::
|
|
|
|
Options to be used when stripping shared libraries. See linkman:strip[1]
|
|
|
|
for details.
|
2009-12-21 14:26:28 -05:00
|
|
|
|
2010-06-16 22:01:09 -04:00
|
|
|
**STRIP_STATIC=**"--strip-debug"::
|
2014-02-01 19:42:44 -05:00
|
|
|
Options to be used when stripping static libraries. See linkman:strip[1]
|
2010-06-16 22:01:09 -04:00
|
|
|
for details.
|
2009-12-21 14:26:28 -05:00
|
|
|
|
2008-11-23 06:17:15 -05:00
|
|
|
**MAN_DIRS=(**{usr{,/local}{,/share},opt/*}/{man,info} ...**)**::
|
2014-02-01 20:43:18 -05:00
|
|
|
If `zipman` is specified in the `OPTIONS` array, this variable will
|
2008-11-23 06:17:15 -05:00
|
|
|
instruct makepkg where to look to compress manual (man and info)
|
|
|
|
pages. If you build packages that are located in opt/, you may need
|
|
|
|
to add the directory to this array. *NOTE:* Do not add the leading
|
|
|
|
slash to the directory name.
|
|
|
|
|
2008-08-23 19:51:56 -04:00
|
|
|
**DOC_DIRS=(**usr/{,share/}{doc,gtk-doc} ...**)**::
|
2014-02-01 20:43:18 -05:00
|
|
|
If `!docs` is specified in the `OPTIONS` array, this variable will
|
2007-07-02 19:22:01 -04:00
|
|
|
instruct makepkg where to look to remove docs. If you build packages
|
|
|
|
that are located in opt/, you may need to add the directory to this
|
2007-07-16 12:57:02 -04:00
|
|
|
array. *NOTE:* Do not add the leading slash to the directory name.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2008-12-07 06:14:32 -05:00
|
|
|
**PURGE_TARGETS=(**usr/{,share}/info/dir .podlist *.pod...**)**::
|
2014-02-01 20:43:18 -05:00
|
|
|
If `purge` is specified in the `OPTIONS` array, this variable will
|
2008-12-07 06:14:32 -05:00
|
|
|
instruct makepkg which files to remove from the package. This is
|
|
|
|
useful for index files that are added by multiple packages.
|
|
|
|
|
2014-01-28 06:37:00 -05:00
|
|
|
**PKGDEST=**"/path/to/directory"::
|
2014-02-01 19:42:44 -05:00
|
|
|
If this value is not set, packages will, by default, be placed in the
|
2007-12-29 01:24:15 -05:00
|
|
|
current directory (location of the linkman:PKGBUILD[5]). Many people
|
2007-07-02 19:22:01 -04:00
|
|
|
like to keep all their packages in one place so this option allows
|
2014-02-01 19:42:44 -05:00
|
|
|
for this behavior. A common location is ``/home/packages''.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2014-01-28 06:37:00 -05:00
|
|
|
**SRCDEST=**"/path/to/directory"::
|
2007-07-02 19:22:01 -04:00
|
|
|
If this value is not set, downloaded source files will only be stored
|
|
|
|
in the current directory. Many people like to keep all source files in
|
|
|
|
a central location for easy cleanup, so this path can be set here.
|
|
|
|
|
2014-01-28 06:37:00 -05:00
|
|
|
**SRCPKGDEST=**"/path/to/directory"::
|
2010-01-20 10:34:42 -05:00
|
|
|
If this value is not set, source package files will be stored in
|
2011-02-01 09:59:35 -05:00
|
|
|
in the current directory. Many people like to keep all source package files
|
|
|
|
in a central location for easy cleanup, so this path can be set here.
|
2010-01-20 10:34:42 -05:00
|
|
|
|
2014-01-28 06:37:00 -05:00
|
|
|
**LOGDEST=**"/path/to/directory"::
|
2012-11-29 02:08:55 -05:00
|
|
|
If this value is not set, log files are written to the current
|
|
|
|
directory. This centralizes the log location, facilitating cleanup
|
|
|
|
and compression.
|
|
|
|
|
2009-01-13 00:44:06 -05:00
|
|
|
**PACKAGER=**"John Doe <john@example.com>"::
|
2007-07-02 19:22:01 -04:00
|
|
|
This value is used when querying a package to see who was the builder.
|
2014-02-01 19:42:44 -05:00
|
|
|
It is recommended to change this to your name and email address.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2013-02-12 21:18:01 -05:00
|
|
|
**COMPRESSGZ=**"(gzip -c -f -n)"::
|
|
|
|
**COMPRESSBZ2=**"(bzip2 -c -f)"::
|
|
|
|
**COMPRESSXZ=**"(xz -c -z -)"::
|
2013-02-12 21:18:31 -05:00
|
|
|
**COMPRESSLZO**"(lzop -q)"::
|
2013-02-12 21:18:01 -05:00
|
|
|
**COMPRESSLRZ=**"(lrzip -q)"::
|
2013-02-09 10:04:21 -05:00
|
|
|
**COMPRESSZ=**"(compress -c -f)"::
|
2012-02-11 04:48:59 -05:00
|
|
|
Sets the command and options used when compressing compiled or source
|
|
|
|
packages in the named format.
|
|
|
|
|
2010-12-13 00:44:21 -05:00
|
|
|
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
2014-02-01 19:42:44 -05:00
|
|
|
Sets the compression used when making compiled or source packages.
|
|
|
|
Valid suffixes are `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`,
|
|
|
|
`.tar.lzo`, `.tar.lrz`, and `.tar.Z`.
|
2007-07-16 12:57:02 -04:00
|
|
|
Do not touch these unless you know what you are doing.
|
|
|
|
|
2014-08-07 00:43:19 -04:00
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
See Also
|
|
|
|
--------
|
2007-12-29 01:24:15 -05:00
|
|
|
linkman:makepkg[8], linkman:pacman[8], linkman:PKGBUILD[5]
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
include::footer.txt[]
|