summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-07-23 16:50:01 +1000
committerAllan McRae <allan@archlinux.org>2012-08-04 00:16:39 +1000
commitc887ccf90553ffb00825353d98c47fea909ba611 (patch)
tree599603b16868b1b2da8dd6211cad2ccd37b9564b
parente0cd7b02932e5472f4c4fa30896ff73240dc9341 (diff)
downloadpacman-c887ccf90553ffb00825353d98c47fea909ba611.tar.xz
doc: document automatically updating the pkgver variable
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--doc/PKGBUILD.5.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt
index a8d3f891..48820e5c 100644
--- a/doc/PKGBUILD.5.txt
+++ b/doc/PKGBUILD.5.txt
@@ -47,6 +47,11 @@ similar to `$_basekernver`.
*pkgver*::
The version of the software as released from the author (e.g., '2.7.1').
The variable is not allowed to contain colons or hyphens.
++
+The `pkgver` variable can be automatically updated by providing a `pkgver()` function
+in the PKGBUILD that outputs the new package version. This is run after downloading
+and extracting the sources so can use those files in determining the new `pkgver`.
+This is most useful when used with sources from version control systems (see below).
*pkgrel*::
This is the release number specific to the Arch Linux release. This