From f6661379c68b541115efe25285965bbd4eb32d25 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 3 Jul 2004 04:25:48 +0000 Subject: Imported from pacman-2.8.tar.gz --- doc/makepkg.8.in | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) (limited to 'doc/makepkg.8.in') diff --git a/doc/makepkg.8.in b/doc/makepkg.8.in index 27461315..63d417e1 100644 --- a/doc/makepkg.8.in +++ b/doc/makepkg.8.in @@ -1,4 +1,4 @@ -.TH makepkg 8 "April 29, 2004" "makepkg #VERSION#" "" +.TH makepkg 8 "July 2, 2004" "makepkg #VERSION#" "" .SH NAME makepkg \- package build utility .SH SYNOPSIS @@ -119,13 +119,21 @@ installs, removes, or upgrades a package. This allows a package to "configure itself" after installation and do the opposite right before it is removed. The exact time the script is run varies with each operation: +.TP +.B pre_install +script is run right before files are extracted. + .TP .B post_install -script is run right after files are installed. +script is run right after files are extracted. + +.TP +.B pre_upgrade +script is run right before files are extracted. .TP .B post_upgrade -script is run after all files have been upgraded. +script is run after files are extracted. .TP .B pre_remove @@ -151,6 +159,14 @@ The install script does not need to be specified in the \fIsource\fP array. .SH Install scripts must follow this format: .RS .nf +# arg 1: the new package version +pre_install() { + # + # do pre-install stuff here + # + /bin/true +} + # arg 1: the new package version post_install() { # @@ -159,6 +175,15 @@ post_install() { /bin/true } +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + # + # do pre-upgrade stuff here + # + /bin/true +} + # arg 1: the new package version # arg 2: the old package version post_upgrade() { @@ -220,6 +245,11 @@ if its an older version. This field contains an optional URL that is associated with the piece of software being packaged. This is typically the project's website. +.TP +.B license +Sets the license type (eg, "GPL", "BSD", "NON-FREE"). (\fBNote\fP: This +option is still in development and may change in the future) + .TP .B install Specifies a special install script that is to be included in the package. @@ -328,6 +358,10 @@ Output syntax and commandline options. .B "\-i, \-\-install" Install/Upgrade the package after a successful build. .TP +.B "\-j " +Sets MAKEFLAGS="-j" before building the package. This is useful for overriding +the MAKEFLAGS setting in /etc/makepkg.conf. +.TP .B "\-m, \-\-nocolor" Disable color in output messages .TP -- cgit v1.2.3-24-g4f1b