From a40e652359ed8b2c5dec9d8efbead8a8afbfdf8d Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 10 Feb 2020 11:13:19 +1000 Subject: makepkg: add basic support for alternatives Alternatives are specified in makepkg via (e.g.): alternative=('sh') There should be a file (e.g.) sh.alternative alongside the PKGBUILD containing a list of symlinks to be created with the alternative is active. This file is stored in the root of the package as (e.g.) .ALTERNATIVE.sh. Signed-off-by: Allan McRae --- doc/PKGBUILD.5.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/PKGBUILD.5.asciidoc b/doc/PKGBUILD.5.asciidoc index 2e2108a0..42958933 100644 --- a/doc/PKGBUILD.5.asciidoc +++ b/doc/PKGBUILD.5.asciidoc @@ -398,8 +398,8 @@ All options and directives for the split packages default to the global values given in the PKGBUILD. Nevertheless, the following ones can be overridden within each split package's packaging function: `pkgdesc`, `arch`, `url`, `license`, `groups`, `depends`, `optdepends`, -`provides`, `conflicts`, `replaces`, `backup`, `options`, `install`, and -`changelog`. +`provides`, `conflicts`, `replaces`, `backup`, `options`, `install`, +`changelog` and `alternative`. Note that makepkg does not consider split package `depends` when checking if dependencies are installed before package building and with `--syncdeps`. -- cgit v1.2.3-24-g4f1b