abinfo "Generating man pages..."
"$PKGDIR"/usr/bin/hugo gen man

abinfo "Installing Hugo's man pages..."
install -Dvm644 "$SRCDIR"/man/*.1 -t "$PKGDIR"/usr/share/man/man1/
abinfo "Generating and installing hugo's shell auto completion ..."
mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions/ \
    "$PKGDIR"/usr/share/fish/vendor_completions.d/ \
    "$PKGDIR"/usr/share/zsh/site-functions/ 
"$PKGDIR"/usr/bin/hugo completion bash > \
    "$PKGDIR"/usr/share/bash-completion/completions/"$PKGNAME"
# FIXME: resolve file belonging issue in further discussion.
# Commenting out the fish completion for now, as fish also provided the completion file
# "$PKGDIR"/usr/bin/hugo completion fish > \
#    "$PKGDIR"/usr/share/fish/vendor_completions.d/"$PKGNAME".fish
"$PKGDIR"/usr/bin/hugo completion zsh > \
    "$PKGDIR"/usr/share/zsh/site-functions/_"$PKGNAME"
