2007-07-06 16:54:18 -04:00
|
|
|
/////
|
|
|
|
vim:set ts=4 sw=4 syntax=asciidoc noet:
|
|
|
|
/////
|
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
|
|
|
|
--------
|
|
|
|
{sysconfdir}/makepkg.conf, ~/.makepkg.conf
|
|
|
|
|
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
Configuration options for makekpg are stored in makepkg.conf. This file is
|
|
|
|
sourced, so you can include any special compiler flags you wish to use. This is
|
|
|
|
helpful for 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
|
|
|
|
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
|
2008-08-23 10:34:42 -04:00
|
|
|
well, and any protocol can have a download agent. Several examples are provided
|
|
|
|
in the default makepkg.conf.
|
|
|
|
+
|
|
|
|
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
|
|
|
|
be replaced with the local filename, plus a ``.part'' extension, which allows
|
|
|
|
makepkg to handle resuming file downloads.
|
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"::
|
|
|
|
A string such as ``i686-pc-linux-gnu'', do not touch unless you know what
|
|
|
|
you are doing. This can be commented out by most users if desired.
|
|
|
|
|
|
|
|
**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"::
|
|
|
|
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.
|
|
|
|
|
2009-02-25 13:40:57 -05:00
|
|
|
**BUILDENV=(**fakeroot !distcc color !ccache**)**::
|
2007-07-16 12:57:02 -04:00
|
|
|
This array contains options that affect the build environment, the defaults
|
|
|
|
are shown here. All options should always be left in the array; to enable
|
|
|
|
or disable an option simply remove or place an ``!'' at the front of the
|
|
|
|
option. Each works as follows:
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*fakeroot*;;
|
|
|
|
Allow building packages as a non-root user. This is highly recommended.
|
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
|
|
|
|
makepkg's `--check` and `--nocheck` options respectively.
|
|
|
|
|
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
|
|
|
|
2008-08-23 19:51:56 -04:00
|
|
|
**OPTIONS=(**strip !docs libtool emptydirs zipman**)**::
|
2008-03-12 19:25:38 -04:00
|
|
|
This array contains options that affect the 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
|
|
|
|
disable an option simply remove or place an ``!'' at the front of the
|
|
|
|
option. Each 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
|
|
|
|
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.
|
|
|
|
|
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"::
|
|
|
|
Options to be used when stripping static libraries. See linkman:strip[1]
|
|
|
|
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} ...**)**::
|
2009-01-13 00:44:06 -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} ...**)**::
|
2009-01-13 00:44:06 -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...**)**::
|
2009-01-13 00:44:06 -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.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**PKGDEST=**"/path/to/folder"::
|
2007-07-02 19:22:01 -04: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
|
2007-07-16 12:57:02 -04:00
|
|
|
this behavior. A common location is ``/home/packages''.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
**SRCDEST=**"/path/to/folder"::
|
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.
|
|
|
|
|
2010-01-20 10:34:42 -05:00
|
|
|
**SRCPKGDEST=**"/path/to/folder"::
|
|
|
|
If this value is not set, source package files will be stored in
|
|
|
|
PKGDEST. Many people like to keep all source package files in
|
|
|
|
a central location for easy cleanup, so this path can be set here.
|
|
|
|
|
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.
|
|
|
|
It is recommended you change this to your name and email address.
|
|
|
|
|
2010-12-13 00:44:21 -05:00
|
|
|
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
|
|
|
Sets the compression used when making compiled or source packages. The
|
|
|
|
current valid suffixes are `.tar`, `.tar.gz`, `.tar,bz2` and `.tar.xz`.
|
2007-07-16 12:57:02 -04:00
|
|
|
Do not touch these unless you know what you are doing.
|
|
|
|
|
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[]
|