Manual.md: document working directory for functions

This commit is contained in:
Piotr Wójcik 2019-01-28 12:45:18 +01:00 committed by maxice8
parent 128fa9c4e8
commit efe1a8beb0
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 11 additions and 0 deletions

View File

@ -938,6 +938,17 @@ still be passed in if it's a GNU configure script.
> A function defined in a template has preference over the same function
defined by a `build_style` script.
Current working directory for functions is set as follows:
- For pre_fetch, pre_extract, do_clean: `<masterdir>`.
- For do_fetch, post_fetch: `XBPS_BUILDDIR`.
- For do_extract, post_extract: `wrksrc`.
- For pre_configure through post_install: `build_wrksrc`
if it is defined, otherwise `wrksrc`.
<a id="build_options"></a>
### Build options