summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-12-19 23:41:17 -0600
committerDan McGee <dan@archlinux.org>2007-12-19 23:41:17 -0600
commit8e53cea8f84332b394f503a8e6194c268e8283b1 (patch)
tree57b368025917a4896c529506835143967a0f11ec /doc
parent25072219b5c3d3824325b2b4439424a7ca89ba16 (diff)
downloadpacman-8e53cea8f84332b394f503a8e6194c268e8283b1.tar.xz
Update PKGBUILD manpage to give info on scriptlet arguments
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/PKGBUILD.5.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt
index 1ebf4a69..743453db 100644
--- a/doc/PKGBUILD.5.txt
+++ b/doc/PKGBUILD.5.txt
@@ -204,22 +204,28 @@ itself after installation and perform an opposite action upon removal.
The exact time the script is run varies with each operation:
*pre_install*::
- script is run right before files are extracted.
+ script is run right before files are extracted. One argument is passed:
+ new package version.
*post_install*::
- script is run right after files are extracted.
+ script is run right after files are extracted. One argument is passed:
+ new package version.
*pre_upgrade*::
- script is run right before files are extracted.
+ script is run right before files are extracted. Two arguments are passed
+ in the following order: new package version, old package version.
*post_upgrade*::
- script is run after files are extracted.
+ script is run after files are extracted. Two arguments are passed
+ in the following order: new package version, old package version.
*pre_remove*::
- script is run right before files are removed.
+ script is run right before files are removed. One argument is passed:
+ old package version.
*post_remove*::
- script is run right after files are removed.
+ script is run right after files are removed. One argument is passed:
+ old package version.
To use this feature, create a file such as 'pkgname.install' and put it in the
same directory as the PKGBUILD script. Then use the install directive: