abinfo "Installing Bash completion ..."
install -dv "$PKGDIR"/usr/share/bash-completion/completions/
"$SRCDIR"/target/release/fd --gen-completions bash > \
    "$PKGDIR"/usr/share/bash-completion/completions/fd

abinfo "Installing Fish completion .."
install -dv "$PKGDIR"/usr/share/fish/vendor_completions.d/
"$SRCDIR"/target/release/fd --gen-completions fish > \
    "$PKGDIR"/usr/share/fish/vendor_completions.d/fd.fish

abinfo "Installing Zsh completion ..."
install -dv "$PKGDIR"/usr/share/zsh/site-functions/
install -Dvm644 "$SRCDIR"/contrib/completion/_fd \
    "$PKGDIR"/usr/share/zsh/site-functions/_fd

abinfo "Installing man page ..."
install -dv "$PKGDIR"/usr/share/man/man1/
install -Dvm644 "$SRCDIR"/doc/fd.1 \
    "$PKGDIR"/usr/share/man/man1/fd.1
