summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/libmakepkg/util/pkgbuild.sh.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/libmakepkg/util/pkgbuild.sh.in b/scripts/libmakepkg/util/pkgbuild.sh.in
index 1a4567dc..7bf7c3e4 100644
--- a/scripts/libmakepkg/util/pkgbuild.sh.in
+++ b/scripts/libmakepkg/util/pkgbuild.sh.in
@@ -195,10 +195,21 @@ get_integlist() {
local integlist=()
for integ in "${known_hash_algos[@]}"; do
+ # check for e.g. "sha256sums"
local sumname="${integ}sums[@]"
if [[ -n ${!sumname} ]]; then
integlist+=("$integ")
+ continue
fi
+
+ # check for e.g. "sha256sums_x86_64"
+ for a in "${arch[@]}"; do
+ local sumname="${integ}sums_${a}[@]"
+ if [[ -n ${!sumname} ]]; then
+ integlist+=("$integ")
+ break
+ fi
+ done
done
if (( ${#integlist[@]} > 0 )); then