Please let the package build-depend on libedit-dev rather than the orphaned libreadline-gplv2-dev. It is supported by upstream and its license is compatible. The configure option --enable-readline=yes would have to be changed to --enable-editline=yes.