default_install &&

if is_depends_enabled $SPELL tk; then
  install -m 0755 -o root -g root contrib/hgk \
    "$INSTALL_ROOT/usr/bin/hgk"
fi

if [[ $HG_DOCS == y ]]; then
  install -vm 755 -d "$INSTALL_ROOT"/usr/share/man/man{1,5} &&

  cd "$SOURCE_DIRECTORY/doc" &&

  install -vm 644 *.1 "$INSTALL_ROOT/usr/share/man/man1" &&
  install -vm 644 *.5 "$INSTALL_ROOT/usr/share/man/man5"
fi
