2007-02-08 00:24:17 -05:00
|
|
|
." the string declarations are a start to try and make distro independent
|
|
|
|
.ds DS Arch Linux
|
|
|
|
.ds PB PKGBUILD
|
|
|
|
.ds VR 3.0.0
|
|
|
|
.TH makepkg 8 "Feb 07, 2007" "makepkg version \*(VR" "\*(DS Utilities"
|
2005-03-14 20:51:43 -05:00
|
|
|
.SH NAME
|
|
|
|
makepkg \- package build utility
|
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B makepkg
|
|
|
|
[\fIoptions\fR]
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBmakepkg\fP is a script to automate the building of packages. All it needs is
|
|
|
|
a build-capable Linux platform and a custom build script for each package you
|
2007-03-01 15:16:15 -05:00
|
|
|
wish to build (known as a \fB\*(PB\fP). See
|
|
|
|
.BR \*(PB (5)
|
|
|
|
for details on creating your own build scripts.
|
|
|
|
|
|
|
|
The advantage to a script-based build is that the work is only done once. Once
|
|
|
|
you have the build script for a package, makepkg will do the rest: download and
|
|
|
|
validate source files, check dependencies, configure the build-time settings,
|
|
|
|
build the package, install the package into a temporary root, make
|
|
|
|
customizations, generate meta-info, and package the whole thing up for
|
|
|
|
\fBpacman\fP to use.
|
2007-02-08 00:24:17 -05:00
|
|
|
|
|
|
|
\fBmakeworld\fP can be used to rebuild an entire package group or the entire
|
|
|
|
build tree. See \fBmakeworld --help\fP for syntax.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.B \-b, --builddeps
|
|
|
|
Build missing dependencies from source. When \fBmakepkg\fP finds missing
|
|
|
|
build-time or run-time dependencies, it will look for the dependencies'
|
|
|
|
\fB\*(PB\fP files under \fIABSROOT\fP (set in \fBmakepkg.conf\fP). If it finds
|
|
|
|
them it will call \fBmakepkg\fP to build and install the missing dependencies.
|
|
|
|
The child calls will be made with the \fB-b\fP and \fB-i\fP options.
|
|
|
|
.TP
|
|
|
|
.B \-c, --clean
|
|
|
|
Clean up leftover work files and directories after a successful build.
|
|
|
|
.TP
|
|
|
|
.B \-C, --cleancache
|
|
|
|
Removes all cached source files from the directory specified in \fISRCDEST\fP
|
|
|
|
in \fBmakepkg.conf\fP.
|
|
|
|
.TP
|
|
|
|
.B \-d, --nodeps
|
|
|
|
Do not perform any dependency checks. This will let you override and ignore any
|
|
|
|
dependencies required. There is a good chance this option will break the build
|
|
|
|
process if all of the dependencies are not installed.
|
|
|
|
.TP
|
|
|
|
.B \-e, --noextract
|
|
|
|
Do not extract source files; use whatever source already exists in the src/
|
|
|
|
directory. This is handy if you want to go into src and manually patch or tweak
|
|
|
|
code, then make a package out of the result. Keep in mind that creating a patch
|
|
|
|
may be a better solution to allow others to use your \fB\*(PB\fP.
|
|
|
|
.TP
|
|
|
|
.B \-f, --force
|
|
|
|
\fBmakepkg\fP will not build a package if a built package already exists in the
|
|
|
|
\fIPKGDEST\fP (set in \fBmakepkg.conf\fP) directory, which may default to the
|
|
|
|
current directory. This allows the built package to be overwritten.
|
|
|
|
.TP
|
|
|
|
.B \-g, --geninteg
|
|
|
|
For each source file in the source array of \fB\*(PB\fP, download the file if
|
|
|
|
required and generate integrity checks. The integrity checks generated are
|
|
|
|
determined by the value of the \fIINTEGRITY_CHECK\fP array in makepkg.conf.
|
|
|
|
This output can be redirected into your \fB\*(PB\fP for source validation
|
|
|
|
(makepkg -g >> \*(PB).
|
|
|
|
.TP
|
|
|
|
.B \-h, --help
|
|
|
|
Output syntax and command line options.
|
|
|
|
.TP
|
|
|
|
.B \-i, --install
|
|
|
|
Install or upgrade the package after a successful build using \fBpacman\fP.
|
|
|
|
.TP
|
2007-05-30 16:07:48 -04:00
|
|
|
.B \-L, --log
|
|
|
|
Log the package build progress to a file. This file is stored in the build
|
|
|
|
directory with a name similar to that of the built package.
|
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \-m, --nocolor
|
|
|
|
Disable color in output messages.
|
|
|
|
.TP
|
|
|
|
.B \-o, --nobuild
|
|
|
|
Download and extract files only, but do not build them. Useful with the
|
|
|
|
\fB--noextract\fP option if you wish to tweak the files in src/ before
|
|
|
|
building.
|
|
|
|
.TP
|
|
|
|
.B \-p \fIbuildscript\fP
|
|
|
|
Read the package script \fIbuildscript\fP instead of the default, \fI\*(PB\fP.
|
|
|
|
.TP
|
|
|
|
.B \-r, --rmdeps
|
|
|
|
Upon successful build, remove any dependencies installed by \fBmakepkg\fP
|
|
|
|
during dependency auto-resolution (using \fB-b\fP or \fB-s\fP).
|
|
|
|
.TP
|
|
|
|
.B \-R, --repackage
|
|
|
|
Repackage contents of pkg/ without rebuilding the package. This is useful if
|
|
|
|
you forgot a depend or install file in your \fB\*(PB\fP and the build itself
|
|
|
|
will not change.
|
|
|
|
.TP
|
|
|
|
.B \-s, --syncdeps
|
|
|
|
Install missing dependencies using \fBpacman\fP. When missing build-time or
|
|
|
|
run-time dependencies are found, \fBpacman\fP will try to resolve them. If
|
|
|
|
successful, the missing packages will be downloaded and installed.
|
|
|
|
.TP
|
2007-06-01 13:43:41 -04:00
|
|
|
.B \--asroot
|
|
|
|
This option allows you to run \fBmakepkg\fP as root. You should not normally
|
|
|
|
run \fBmakepkg\fP as root unless you know what you are doing. For any
|
|
|
|
operations that require \fBpacman\fP, \fBsudo\fP is normally used; this switch
|
|
|
|
will call \fBpacman\fP directly.
|
2006-02-02 18:41:31 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \--noconfirm
|
|
|
|
(Passed to \fBpacman\fP) Prevent \fBpacman\fP from waiting for user input
|
|
|
|
before proceeding with operations.
|
2006-02-02 18:41:31 -05:00
|
|
|
.TP
|
2007-02-08 00:24:17 -05:00
|
|
|
.B \--noprogressbar
|
|
|
|
(Passed to \fBpacman\fP) Prevent \fBpacman\fP from displaying a progress bar;
|
|
|
|
useful if you are redirecting makepkg output to file.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
|
|
|
.SH CONFIGURATION
|
2007-02-08 22:44:54 -05:00
|
|
|
See
|
|
|
|
.BR makepkg.conf (5)
|
|
|
|
for more details on configuring \fBmakepkg\fP using the \fBmakepkg.conf\fP file.
|
2007-02-08 00:24:17 -05:00
|
|
|
|
2007-02-08 22:44:54 -05:00
|
|
|
.SH BUGS
|
|
|
|
Bugs? You must be kidding, there are no bugs in this software. But if we happen
|
|
|
|
to be wrong, send us an email with as much detail as possible to
|
|
|
|
<pacman-dev@archlinux.org>.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
2007-02-08 00:24:17 -05:00
|
|
|
.BR makepkg.conf (5),
|
|
|
|
.BR \*(PB (5),
|
|
|
|
.BR pacman (8)
|
|
|
|
|
|
|
|
See the Arch Linux website at <http://www.archlinux.org> for more current
|
|
|
|
information on the distribution and the \fBpacman\fP family of tools, and
|
|
|
|
<http://wiki.archlinux.org/index.php/Arch_Packaging_Standards> for
|
|
|
|
recommendations on packaging standards.
|
2005-03-14 20:51:43 -05:00
|
|
|
|
2007-02-08 00:24:17 -05:00
|
|
|
.SH AUTHORS
|
2005-03-14 20:51:43 -05:00
|
|
|
.nf
|
|
|
|
Judd Vinet <jvinet@zeroflux.org>
|
2007-02-08 00:24:17 -05:00
|
|
|
Aurelien Foret <aurelien@archlinux.org>
|
|
|
|
Aaron Griffin <aaron@archlinux.org>
|
|
|
|
Dan McGee <dan@archlinux.org>
|
2005-03-14 20:51:43 -05:00
|
|
|
.fi
|
2007-02-22 22:23:06 -05:00
|
|
|
|
|
|
|
See the 'AUTHORS' file for additional contributors.
|