summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-06-15 14:32:42 +1000
committerDan McGee <dan@archlinux.org>2011-06-22 10:45:55 -0500
commit508b360c24ddfdb79f66cc14b197988a829b0ecd (patch)
tree32b0e68a2c9ee5d272673c91f1ee4f21da100863 /doc
parentb803a33a8fc2ef86ba2d986c36f31524532d454b (diff)
downloadpacman-508b360c24ddfdb79f66cc14b197988a829b0ecd.tar.xz
makepkg: allow specifying alternative build directory
Add a BUILDDIR variable (which can be overridden in the environment) to specify an alternative location for building the package. This is useful for people who want to build on a different filesystem for improved performance (e.g. tmpfs). Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/makepkg.8.txt3
-rw-r--r--doc/makepkg.conf.5.txt8
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/makepkg.8.txt b/doc/makepkg.8.txt
index e61f7ab3..f15226ac 100644
--- a/doc/makepkg.8.txt
+++ b/doc/makepkg.8.txt
@@ -206,6 +206,9 @@ Environment Variables
Folder where the downloaded sources will be stored. Overrides the
corresponding value defined in linkman:makepkg.conf[5].
+**BUILDDIR=**"/path/to/folder"::
+ Folder where the package will be built. Overrides the corresponding
+ value defined in linkman:makepkg.conf[5].
Configuration
-------------
diff --git a/doc/makepkg.conf.5.txt b/doc/makepkg.conf.5.txt
index 48f5ef56..aa0174cb 100644
--- a/doc/makepkg.conf.5.txt
+++ b/doc/makepkg.conf.5.txt
@@ -110,6 +110,14 @@ Options
running in the DistCC cluster. In addition, you will want to modify your
`MAKEFLAGS`.
+**BUILDDIR=**"/path/to/folder"::
+ If this value is not set, packages will by default be built in
+ subdirectories of the directory that makepkg is called from. This
+ option allows setting the build location to another folder.
+ Incorrect use of `$startdir` in a PKGBUILD may cause building with
+ this option to fail.
+
+
**GPGKEY=**""::
Specify a key to use for gpg signing instead of the default key in the
keyring. Can be overridden with makepkg's `--key` option.