File fix-install-bash-completions-in-usr.patch of Package pacman
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -246,8 +246,8 @@ makepkg-wrapper: \
$(AM_V_at)$(LN_S) $@ $(subst -wrapper,,$@)
install-data-local:
- $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
- $(INSTALL_DATA) completion/bash_completion $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/bash-completion/completions
+ $(INSTALL_DATA) completion/bash_completion $(DESTDIR)$(datarootdir)/bash-completion/completions/pacman
$(MKDIR_P) $(DESTDIR)$(datarootdir)/zsh/site-functions/
$(INSTALL_DATA) completion/zsh_completion $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman