Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/doc/man/makechrootpkg.1.asciidoc
blob: 12d32f172901b8cfb049809006061a3e01dc109f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
makechrootpkg(1)
================

Name
----
makechrootpkg - Build a PKGBUILD in a given chroot environment

Synopsis
--------
makechrootpkg [OPTIONS] -r <chrootdir> [--] [makepkg args]

Description
-----------

Run this script in a directory containing a PKGBUILD to build a package
inside a clean chroot. Arguments passed to this script after the
end-of-options marker (--) will be passed to makepkg.

The chroot dir consists of the following directories:
<chrootdir>/{root, copy} but only "root" is required
by default. The working copy will be created as needed

The chroot "root" directory must be created via the following
command:
	mkarchroot <chrootdir>/root base-devel

This script reads {SRC,SRCPKG,PKG,LOG}DEST, MAKEFLAGS and PACKAGER
from makepkg.conf(5), if those variables are not part of the
environment.

Default makepkg args: --syncdeps --noconfirm --log --holdver --skipinteg

Options
-------

*-h*::
	Show this usage message

*-c*::
	Clean the chroot before building

*-d* <dir>::
	Bind directory into build chroot as read-write

*-D* <dir>::
	Bind directory into build chroot as read-only

*-u*::
	Update the working copy of the chroot before building
	This is useful for rebuilds without dirtying the pristine
	chroot

*-r* <dir>::
	The chroot dir to use

*-I* <pkg>::
	Install a package into the working copy of the chroot

*-l* <copy>::
	The directory to use as the working copy of the chroot
	Useful for maintaining multiple copies
	Default: $USER

*-n*::
	Run namcap on the build package

*-C*::
	Run checkpkg on the build package

*-T*::
	Build in a temporary directory

*-U*::
	Run makepkg as a specified user

include::include/footer.asciidoc[]