[pacman-dev] [PATCH 2/2] doc: update PKGBUILD man page
Allan McRae
allan at archlinux.org
Sat Feb 2 00:28:11 EST 2013
On 02/02/13 14:17, Martin Panter wrote:
> One little typo
>
> On 2 February 2013 02:51, Allan McRae <allan at archlinux.org> wrote:
>> Rearrange the functions section of the PKGBUILD man package. Clarify
>> that the package() function is a requirement and the rest are all
>> optional. Note that $pkgdir should only be used in the package()
>> function.
>>
>> Signed-off-by: Allan McRae <allan at archlinux.org>
>> ---
>> +If you create any variables of your own in the build function, it is
>> +recommended to use the bash `local` keyword to scope the variable to inside
>> +the build function.
>>
>> -*startdir*::
>> - This contains the absolute path to the directory where the PKGBUILD is
>> - located, which is usually the output of `$(pwd)` when makepkg is started.
>> - Use of this variable is deprecated and strongly discouraged.
>> +*check() Function*::
>> + An optional check() function can be specified in which a package's
>> + test-suite may be run. This function is run between the build() and
>> + package() functions. Be sure any exotic commands used are covered by
>> + `checkdepends`.
>> +
>> +All of the above variables such as `$pkgname` and `$pkgver` are available for use
>> +in the build function. In addition, makepkg defines the following variables for use
>> +during the build and install process:
>>
>> *srcdir*::
>> - This contains the directory where makepkg extracts, or copies, all source
>> - files.
>> + This contains the directory where makepkg extracts, or copies, all sourc
>
> *source (was truncated)
>
Fixed.
More information about the pacman-dev
mailing list