curses5 on Debian should be compatible with ncurses6 on other systems, I suppose. Hence: s/6/5/g.