Manual Reference Pages - MAKEPKG (8)
makepkg - package build utility
makepkg [options] [ENVVAR=value] [ENVVAR+=value] ...
makepkg is a script to automate the building of packages. The requirements for using the script are a build-capable *nix platform and a custom build script for each package you wish to build (known as a PKGBUILD). See 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 customizations, generate meta-info, and package the whole thing up for pacman to use.
makepkg uses your current locale by default and does not unset it when building packages. If you wish to share your build output with others when seeking help or for other purposes, you may wish to run "LC_ALL=C makepkg" so your logs and output are not localized.
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
Clean up leftover work files and directories after a successful build.
Use an alternate configuration file instead of the
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.
Do not extract source files or run the prepare() function (if present); use whatever source already exists in the $srcdir/ directory. This is handy if you want to go into $srcdir/ 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 PKGBUILD.
For each source file in the source array of PKGBUILD, download the file if required and perform the integrity checks. No extraction or build is performed. Dependencies specified in the PKGBUILD will not be handled unless
is used. Useful for performing subsequent offline builds.
makepkg will not build a package if a built package already exists in the
makepkg.conf(5)) directory, which may default to the current directory. This allows the built package to be overwritten.
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 checks present in the PKGBUILD, falling back to the value of the INTEGRITY_CHECK array in makepkg.conf(5) if these are absent This output can be redirected into your PKGBUILD for source validation using "makepkg -g >> PKGBUILD".
Do not perform any integrity checks (checksum and PGP) on source files.
Do not verify checksums of source files.
Do not verify PGP signatures of source files.
Output syntax and command line options.
When using VCS sources (PKGBUILD(5)) any currently checked out source will not be updated to the latest revision.
Install or upgrade the package after a successful build using
Enable makepkg build logging. This will use the
program to send output of the
function to both the console and to a text file in the build directory named
pkgname-pkgver-pkgrel-arch.log. As mentioned above, the build log will be localized so you may want to set your locale accordingly if sharing the log output with others.
Disable color in output messages.
Download and extract files, run the prepare() function, but do not build them. Useful with the
option if you wish to tweak the files in $srcdir/ before building.
Read the package script
instead of the
must be located in the directory makepkg is called from.
Upon successful build, remove any dependencies installed by makepkg during dependency auto-resolution and installation when using
Repackage contents of the package without rebuilding the package. This is useful if you forgot, for example, a dependency or install file in your PKGBUILD and the build itself will not change.
Install missing dependencies using pacman. When build-time or run-time dependencies are not found, pacman will try to resolve them. If successful, the missing packages will be downloaded and installed.
Do not actually build the package, but build a source-only tarball that does not include sources that can be fetched via a download URL. This is useful for passing a single tarball to another program such as a chroot, remote builder, or a tarball upload. Because integrity checks are verified, all source files of the package need to be present or downloadable.
Display version information.
Remove the $srcdir before building the package.
Do not actually build the package, but build a source-only tarball that includes all sources, including those that are normally downloaded via makepkg. This is useful for passing a single tarball to another program such as a chroot or remote builder. It will also satisfy requirements of the GPL when distributing binary packages.
Only build listed packages from a split package. Multiple packages should be comma separated in the list. This option can be specified multiple times.
Run the check() function in the PKGBUILD, overriding the setting in
Do not create the archive at the end of the build process. This can be useful to test the package() function or if your target distribution does not use pacman.
Do not run the check() function in the PKGBUILD or handle the checkdepends.
Do not run the prepare() function in the PKGBUILD.
Sign the resulting package with gpg, overriding the setting in
Do not create a signature for the built package.
Specify a key to use when signing packages, overriding the GPGKEY setting in
makepkg.conf(5). If not specified in either location, the default key from the keyring will be used.
(Passed to pacman) Prevent pacman from waiting for user input before proceeding with operations.
(Passed to pacman) Tell pacman not to reinstall a target if it is already up-to-date. (used with
(Passed to pacman) Install packages as non-explicitly installed (used with
(Passed to pacman) Prevent pacman from displaying a progress bar; useful if you are redirecting makepkg output to file.
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 PKGBUILD(5) for details on how to set up a development PKGBUILD.
The command that will be used to check for missing dependencies and to install and remove packages. Pacmans
operations must be supported by this command. If the variable is not set or empty, makepkg will fall back to pacman.
Use an alternate config file instead of the
Directory where the resulting packages will be stored. Overrides the corresponding value defined in
Directory where the downloaded sources will be stored. Overrides the corresponding value defined in
Directory where source package files will be stored. Overrides the corresponding value defined in
Directory where generated log files will be stored. Overrides the corresponding value defined in
PACKAGER="John Doe <email@example.com>"
String to identify the creator of the resulting package. Overrides the corresponding value defined in
Directory where the package will be built. Overrides the corresponding value defined in
Force build for a specific architecture. Useful for cross-compiling. Overrides the corresponding value defined in
Sets the compression used when making compiled or source packages. Overrides the corresponding value defined in
Directory where the gpg keyring for signing the built package is stored.
Specify a key to use when signing packages, overriding the GPGKEY setting in
See makepkg.conf(5) for more details on configuring makepkg using the makepkg.conf file.
makepkg.conf(5), PKGBUILD(5), pacman(8)
See the pacman website at https://www.archlinux.org/pacman/ for current information on pacman and its related tools.
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 firstname.lastname@example.org.
Allan McRae <email@example.com>
Andrew Gregory <firstname.lastname@example.org>
Dan McGee <email@example.com>
Dave Reisner <firstname.lastname@example.org>
Past major contributors:
Judd Vinet <email@example.com>
Aurelien Foret <firstname.lastname@example.org>
Aaron Griffin <email@example.com>
Xavier Chantry <firstname.lastname@example.org>
Nagy Gabor <email@example.com>
For additional contributors, use git shortlog -s on the pacman.git repository.
|Pacman 4&.2&.0 ||MAKEPKG (8) ||2014-12-19 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.