summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/util/schema.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2020-02-10 02:13:19 +0100
committerAllan McRae <allan@archlinux.org>2020-03-09 08:05:24 +0100
commita40e652359ed8b2c5dec9d8efbead8a8afbfdf8d (patch)
tree9ae04fa0279171fbd172b6642bb982e8b5bcdd05 /scripts/libmakepkg/util/schema.sh.in
parente578903b60081bb8a7ddd094ed67946d5e48b719 (diff)
downloadpacman-a40e652359ed8b2c5dec9d8efbead8a8afbfdf8d.tar.gz
pacman-a40e652359ed8b2c5dec9d8efbead8a8afbfdf8d.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/util/schema.sh.in')
-rw-r--r--scripts/libmakepkg/util/schema.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/libmakepkg/util/schema.sh.in b/scripts/libmakepkg/util/schema.sh.in
index b42b8ae9..21ccaf2e 100644
--- a/scripts/libmakepkg/util/schema.sh.in
+++ b/scripts/libmakepkg/util/schema.sh.in
@@ -28,8 +28,8 @@ source "$LIBRARY/util/util.sh"
known_hash_algos=({ck,md5,sha{1,224,256,384,512},b2})
-pkgbuild_schema_arrays=(arch backup checkdepends conflicts depends groups
- license makedepends noextract optdepends options
+pkgbuild_schema_arrays=(alternative arch backup checkdepends conflicts depends
+ groups license makedepends noextract optdepends options
provides replaces source validpgpkeys
"${known_hash_algos[@]/%/sums}")
@@ -42,7 +42,7 @@ pkgbuild_schema_arch_arrays=(checkdepends conflicts depends makedepends
pkgbuild_schema_package_overrides=(pkgdesc arch url license groups depends
optdepends provides conflicts replaces
- backup options install changelog)
+ backup options install changelog alternative)
readonly -a known_hash_algos pkgbuild_schema_arrays \
pkgbuild_schema_strings pkgbuild_schema_arch_arrays \