url="https://github.com/uobikiemukot/yaft"

(
    # Create and change to temporary working directory.
    tmp_dir="$(mktemp -d)"
    trap 'rm -rf "$tmp_dir"' EXIT
    cd "$tmp_dir"
    # Clone.
    git clone "$url"
    cd "$(basename "$url")"
    # Build.
    make
    sudo make install \
        PREFIX="/usr/local" \
        MANPREFIX="/usr/local/share/man"
)