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(8)
|
|
|
|
==========
|
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
makepkg - package build utility
|
|
|
|
|
|
|
|
|
|
|
|
Synopsis
|
|
|
|
--------
|
|
|
|
makepkg [options]
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
makepkg 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
|
|
|
|
wish to build (known as a PKGBUILD). See manlink:PKGBUILD[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
|
2007-07-16 12:57:02 -04:00
|
|
|
customizations, generate meta-info, and package the whole thing up for pacman
|
|
|
|
to use.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
makeworld can be used to rebuild an entire package group or the entire build
|
|
|
|
tree. See `makeworld \--help` for syntax.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
2007-07-16 12:57:02 -04:00
|
|
|
*-A, \--ignorearch*::
|
|
|
|
Ignore a missing or incomplete arch field in the build script. This is
|
|
|
|
for rebuilding packages from source when the PKGBUILD may be slightly
|
|
|
|
outdated and not updated with an `$$arch=('yourarch')$$` field.
|
|
|
|
|
|
|
|
*-b, \--builddeps*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Build missing dependencies from source. When makepkg finds missing
|
|
|
|
build-time or run-time dependencies, it will look for the dependencies'
|
|
|
|
PKGBUILD files under ABSROOT (set in makepkg.conf). If it finds them it
|
|
|
|
will call makepkg to build and install the missing dependencies. The
|
|
|
|
child calls will be made with the `-b` and `-i` options.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-c, \--clean*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Clean up leftover work files and directories after a successful build.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-C, \--cleancache*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Removes all cached source files from the directory specified in SRCDEST
|
|
|
|
in manlink:makepkg.conf[5].
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-d, \--nodeps*::
|
2007-07-02 19:22:01 -04:00
|
|
|
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.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-e, \--noextract*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Do not extract source files; use whatever source already exists in the
|
2007-10-29 23:25:30 -04:00
|
|
|
src/ directory. This is handy if you want to go into src/ and manually
|
2007-07-02 19:22:01 -04:00
|
|
|
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 PKGBUILD.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-f, \--force*::
|
2007-07-02 19:22:01 -04:00
|
|
|
makepkg will not build a package if a built package already exists in
|
|
|
|
the PKGDEST (set in manlink:makepkg.conf[5]) directory, which may
|
|
|
|
default to the current directory. This allows the built package to be
|
|
|
|
overwritten.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-g, \--geninteg*::
|
2007-07-02 19:22:01 -04:00
|
|
|
For each source file in the source array of PKGBUILD, download the file
|
|
|
|
if required and generate integrity checks. The integrity checks
|
|
|
|
generated are determined by the value of the INTEGRITY_CHECK array in
|
|
|
|
manlink:makepkg.conf[5]. This output can be redirected into your
|
|
|
|
PKGBUILD for source validation (`makepkg -g >> PKGBUILD`).
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-h, \--help*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Output syntax and command line options.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-i, \--install*::
|
|
|
|
Install or upgrade the package after a successful build using
|
|
|
|
manlink:pacman[8].
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-m, \--nocolor*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Disable color in output messages.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-o, \--nobuild*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Download and extract files only, but do not build them. Useful with the
|
2007-07-16 12:57:02 -04:00
|
|
|
`\--noextract` option if you wish to tweak the files in src/ before
|
2007-07-02 19:22:01 -04:00
|
|
|
building.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-p* <`buildscript`>::
|
2007-10-29 23:25:30 -04:00
|
|
|
Read the package script `buildscript` instead of the `PKGBUILD` default;
|
|
|
|
see manlink:PKGBUILD[5].
|
2007-07-02 19:22:01 -04:00
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-r, \--rmdeps*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Upon successful build, remove any dependencies installed by makepkg
|
|
|
|
during dependency auto-resolution (using `-b` or `-s`).
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-R, \--repackage*::
|
2007-07-02 19:22:01 -04:00
|
|
|
Repackage contents of pkg/ without rebuilding the package. This is
|
|
|
|
useful if you forgot a depend or install file in your PKGBUILD and the
|
|
|
|
build itself will not change.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*-s, \--syncdeps*::
|
2007-10-29 23:25:30 -04:00
|
|
|
Install missing dependencies using pacman. When build-time or run-time
|
|
|
|
dependencies are not found, pacman will try to resolve them. If
|
2007-07-02 19:22:01 -04:00
|
|
|
successful, the missing packages will be downloaded and installed.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*\--asroot*::
|
|
|
|
Allow makepkg to run as root. This is for security purposes as it is
|
|
|
|
normally dangerous to do so. This will also disable use of fakeroot and
|
|
|
|
sudo.
|
|
|
|
|
|
|
|
*\--source*::
|
|
|
|
Do not actually build the package, but build a source-only tarball. This
|
|
|
|
is useful for passing a single tarball to another program such as a
|
|
|
|
chroot, remote builder, or an AUR upload.
|
|
|
|
|
|
|
|
*\--noconfirm*::
|
2007-07-02 19:22:01 -04:00
|
|
|
(Passed to pacman) Prevent pacman from waiting for user input before
|
|
|
|
proceeding with operations.
|
|
|
|
|
2007-07-16 12:57:02 -04:00
|
|
|
*\--noprogressbar*::
|
2007-07-02 19:22:01 -04:00
|
|
|
(Passed to pacman) Prevent pacman from displaying a progress bar;
|
|
|
|
useful if you are redirecting makepkg output to file.
|
|
|
|
|
|
|
|
|
2007-10-29 23:25:30 -04:00
|
|
|
Additional Features
|
|
|
|
-------------------
|
|
|
|
makepkg supports building development versions of packages without having to
|
|
|
|
manually update the pkgver in the PKGBUILD. This was formerly done using the
|
|
|
|
separate utility 'versionpkg'. See manlink:PKGBUILD[5] for details on how to
|
|
|
|
set up a development PKGBUILD.
|
|
|
|
|
|
|
|
|
2007-07-02 19:22:01 -04:00
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
See manlink:makepkg.conf[5] for more details on configuring makepkg using the
|
2007-07-16 12:57:02 -04:00
|
|
|
'makepkg.conf' file.
|
2007-07-02 19:22:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
manlink:makepkg.conf[5], manlink:PKGBUILD[5], manlink:pacman[8]
|
|
|
|
|
|
|
|
include::footer.txt[]
|