diff --git a/Manual.md b/Manual.md index e6a9855..507a187 100644 --- a/Manual.md +++ b/Manual.md @@ -316,7 +316,7 @@ The following functions are defined by `xbps-src` and can be used on any templat `${FILESDIR}/$service`, containing `exec vlogger -t $service -p $facility`. if a second argument is not specified, the `daemon` facility is used. For more information about `vlogger` and available values for the facility, - see [vlogger(1)](https://man.voidlinux.org/vlogger.1). + see [vlogger(8)](https://man.voidlinux.org/vlogger.8). - *vsed()* `vsed -i -e ` @@ -335,6 +335,29 @@ The following functions are defined by `xbps-src` and can be used on any templat it will default to `pkgname`. The `shell` argument can be one of `bash`, `fish` or `zsh`. +- *vextract()* `[-C ] [--no-strip-components|--strip-components=] ` + + Extracts `file` to `target directory` with `n` directory components stripped. If + `target directory` not specified, defaults to the working directory. If + `--strip-components` or `--no-strip-components` is not specified, defaults to + `--strip-components=1`. + +- *vsrcextract()* `[-C ] [--no-strip-components|--strip-components=] ` + + Extracts `$XBPS_SRCDISTDIR/$pkgname-$version/` to `target directory` + with `n` directory components stripped. If `target directory` not specified, + defaults to the working directory. If `--strip-components` or `--no-strip-components` + is not specified, defaults to `--strip-components=1`. + + This is useful when used in conjunction with `skip_extraction` and for submodule distfiles. + +- *vsrccopy()* `... ` + + Copies `file`s from `$XBPS_SRCDISTDIR/$pkgname-$version/` into the `target` directory, + creating `target` if it does not exist. + + This is useful when used in conjunction with `skip_extraction`. + > Shell wildcards must be properly quoted, Example: `vmove "usr/lib/*.a"`. @@ -736,9 +759,9 @@ built for, available architectures can be found under `common/cross-profiles`. In general, `archs` should only be set if the upstream software explicitly targets certain architectures or there is a compelling reason why the software should not be available on some supported architectures. -Prepending pattern with tilde means disallowing build on indicated archs. -First matching pattern is taken to allow/deny build. When no pattern matches, -package is build if last pattern includes tilde. +Prepending a pattern with a tilde means disallowing build on the indicated archs. +The first matching pattern is taken to allow/deny build. When no pattern matches, +the package is built if the last pattern includes a tilde. Examples: ``` @@ -1227,7 +1250,7 @@ package accordingly. Additionally, the following functions are available: - *vopt_feature()* `vopt_feature