Skip packages using mingw_arch in PKGBUILD

This commit is contained in:
Mehdi Chinoune
2022-03-04 22:18:55 +01:00
parent d839cb4784
commit 37cfb6a8bd

View File

@@ -21,6 +21,21 @@ pacman --noconfirm -Fy
# Detect
list_packages || failure 'Could not detect changed files'
message 'Processing changes'
declare -a skipped_packages=()
for package in "${packages[@]}"; do
cd "${package}"
. PKGBUILD
if [[ ! " ${mingw_arch[*]} " =~ " ${MSYSTEM,,} " ]]; then
skipped_packages+=("${package}")
fi
cd - > /dev/null
done
for package in "${skipped_packages}"; do
packages=(${packages[@]/"${package}"})
done
test -z "${packages}" && success 'No changes in package recipes'
# Build